Enhance branch object with default flag

This commit is contained in:
René Pfeuffer
2019-03-25 11:28:29 +01:00
parent 5aab95b651
commit 4ec7006108
9 changed files with 26 additions and 10 deletions

View File

@@ -88,7 +88,7 @@ public class HgBranchesCommand extends AbstractCommand
node = changeset.getNode();
}
return new Branch(hgBranch.getName(), node);
return Branch.normalBranch(hgBranch.getName(), node);
}
});

View File

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