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());
System.out.printf("collapse:%b, keep:%b, keepbranches:%b\n", re.isCollapse(), re.isKeepOriginalRevisions(), re.isKeepBranchNames());