Mercurial > jhg
changeset 387:cdea37239b01
Issue 23: HgInvalidRevisionException for svn imported repository (changeset 0 references nullid manifest). Tests
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Mon, 13 Feb 2012 15:11:27 +0100 |
parents | 73e875154afb |
children | b015f3918120 |
files | test-data/test-repos.jar test/org/tmatesoft/hg/test/TestStatus.java |
diffstat | 2 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/TestStatus.java Mon Feb 13 14:52:21 2012 +0100 +++ b/test/org/tmatesoft/hg/test/TestStatus.java Mon Feb 13 15:11:27 2012 +0100 @@ -513,6 +513,20 @@ assertTrue("Kind " + k.name() + " shall be empty",sc.get(k).isEmpty()); } } + + /** + * Issue 23: HgInvalidRevisionException for svn imported repository (changeset 0 references nullid manifest) + */ + @Test + public void testImportedRepoWithOddManifestRevisions() throws Exception { + repo = Configuration.get().find("status-4"); + HgStatusCommand cmd = new HgStatusCommand(repo); + cmd.all(); + StatusCollector sc = new StatusCollector(); + cmd.execute(sc); + // shall pass without exception + assertTrue(sc.getErrors().isEmpty()); + } /*