Package org.tmatesoft.hg.core

Examples of org.tmatesoft.hg.core.HgPullCommand.execute()


      System.err.printf("Remote repository %s is not valid", hgRemote.getLocation());
      return;
    }
    HgPullCommand cmd = hgRepo.createPullCommand();
    cmd.source(hgRemote);
    cmd.execute();
    System.out.printf("Sent %d changesets\n", cmd.getPulledRevisions().size());
  }

}
View Full Code Here


    try {
      final HgLookup hgLookup = new HgLookup();
      final HgRemoteRepository srcRemote = hgLookup.detect(server.getURL());
      final HgRepository dstRepo = hgLookup.detect(dstRepoLoc);
      HgPullCommand cmd = new HgPullCommand(dstRepo).source(srcRemote);
      cmd.execute();
      final HgRepository srcRepo = hgLookup.detect(srcRepoLoc);
      checkRepositoriesAreSame(srcRepo, dstRepo);
      final List<Nodeid> incoming = new HgIncomingCommand(dstRepo).against(srcRemote).executeLite();
      errorCollector.assertTrue(incoming.toString(), incoming.isEmpty());
      RepoUtils.assertHgVerifyOk(errorCollector, dstRepoLoc);
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.