Mercurial > hg4j
comparison 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 |
comparison
equal
deleted
inserted
replaced
386:73e875154afb | 387:cdea37239b01 |
---|---|
511 assertTrue(sc.getErrors().isEmpty()); | 511 assertTrue(sc.getErrors().isEmpty()); |
512 for (HgStatus.Kind k : HgStatus.Kind.values()) { | 512 for (HgStatus.Kind k : HgStatus.Kind.values()) { |
513 assertTrue("Kind " + k.name() + " shall be empty",sc.get(k).isEmpty()); | 513 assertTrue("Kind " + k.name() + " shall be empty",sc.get(k).isEmpty()); |
514 } | 514 } |
515 } | 515 } |
516 | |
517 /** | |
518 * Issue 23: HgInvalidRevisionException for svn imported repository (changeset 0 references nullid manifest) | |
519 */ | |
520 @Test | |
521 public void testImportedRepoWithOddManifestRevisions() throws Exception { | |
522 repo = Configuration.get().find("status-4"); | |
523 HgStatusCommand cmd = new HgStatusCommand(repo); | |
524 cmd.all(); | |
525 StatusCollector sc = new StatusCollector(); | |
526 cmd.execute(sc); | |
527 // shall pass without exception | |
528 assertTrue(sc.getErrors().isEmpty()); | |
529 } | |
516 | 530 |
517 | 531 |
518 /* | 532 /* |
519 * With warm-up of previous tests, 10 runs, time in milliseconds | 533 * With warm-up of previous tests, 10 runs, time in milliseconds |
520 * 'hg status -A': Native client total 953 (95 per run), Java client 94 (9) | 534 * 'hg status -A': Native client total 953 (95 per run), Java client 94 (9) |