final Pair<Nodeid, Nodeid> wcParents = repo.getWorkingCopyParents();
assertEquals("5f24ef64e9dfb1540db524f88cb5c3d265e1a3b5", wcParents.first().toString());
assertTrue(wcParents.second().isNull());
//
HgDirstate ds = new HgInternals(repo).getDirstate();
final Pair<Nodeid, Nodeid> wcParents2 = ds.parents();
assertEquals(wcParents.first(), wcParents2.first());
assertEquals(wcParents.second(), wcParents2.second());
}
@Test