Mark default branch for hg

This commit is contained in:
René Pfeuffer
2019-03-25 14:20:23 +01:00
parent b36f1ca3e4
commit 56e61ab966

View File

@@ -53,6 +53,8 @@ public class HgBranchesCommand extends AbstractCommand
implements BranchesCommand
{
private static final String DEFAULT_BRANCH_NAME = "default";
/**
* Constructs ...
*
@@ -88,7 +90,11 @@ public class HgBranchesCommand extends AbstractCommand
node = changeset.getNode();
}
return Branch.normalBranch(hgBranch.getName(), node);
if (DEFAULT_BRANCH_NAME.equals(hgBranch.getName())) {
return Branch.defaultBranch(hgBranch.getName(), node);
} else {
return Branch.normalBranch(hgBranch.getName(), node);
}
}
});