Mercurial > hg4j
diff test/org/tmatesoft/hg/test/TestStatus.java @ 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 | 86f049e6bcae |
children | 5e95b0da26f2 |
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()); + } /*