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());