mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-05-07 14:25:57 +02:00
Mark default branch for hg
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user