mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
Enhance branch object with default flag
This commit is contained in:
@@ -88,7 +88,7 @@ public class HgBranchesCommand extends AbstractCommand
|
||||
node = changeset.getNode();
|
||||
}
|
||||
|
||||
return new Branch(hgBranch.getName(), node);
|
||||
return Branch.normalBranch(hgBranch.getName(), node);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ public class HgBranchCommand implements BranchCommand
|
||||
public Branch branch(String name) throws IOException
|
||||
{
|
||||
com.aragost.javahg.commands.BranchCommand.on(repository).set(name);
|
||||
return new Branch(name, repository.tip().getNode());
|
||||
return Branch.normalBranch(name, repository.tip().getNode());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user