Examples of HgExtensionsManager


Examples of org.tmatesoft.hg.repo.ext.HgExtensionsManager

    HgCheckoutCommand coCmd = new HgCheckoutCommand(hgRepo);
    coCmd.changeset(17).execute();
  }
 
  private void tryExtensions() throws Exception {
    HgExtensionsManager em = hgRepo.getExtensions();
    if (!em.isEnabled(HgExt.Rebase)) {
      System.out.println("Rebase is not enabled");
      return;
    }
    Rebase re = em.getRebaseExtension();
    if (!re.refresh().isRebaseInProgress()) {
      System.out.println("No rebase is in progress");
      return;
    }
    System.out.printf("%s %s %s\n", re.getWorkingDirParent().shortNotation(), re.getTarget().shortNotation(), re.getExternalParent().shortNotation());
View Full Code Here

Examples of org.tmatesoft.hg.repo.ext.HgExtensionsManager

public class TestMqExtension {

  @Test
  public void testMqManager() throws Exception {
    HgRepository repo = Configuration.get().find("test-mq");
    HgExtensionsManager extManager = repo.getExtensions();
    assertTrue(extManager.isEnabled(HgExt.MQ));
    MqManager mqManager = extManager.getMQ();
    mqManager.refresh();
    OutputParser.Stub output = new OutputParser.Stub();
    ExecHelper eh = new ExecHelper(output, repo.getWorkingDir());
    // `hg qseries`
    eh.run("hg", "qseries");
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.