Package org.tmatesoft.hg.repo

Examples of org.tmatesoft.hg.repo.HgDirstate.parents()


    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
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.