repos: hg: Add real support for resolve_branch_cmd
Will be needed to unify invalid branch name detection. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
f1f358bed5
commit
51846faef4
@ -492,8 +492,8 @@ class MercurialRepo(RepoImpl):
|
||||
return ['hg', 'diff']
|
||||
|
||||
def resolve_branch_cmd(self):
|
||||
# We never need to care about creating tracking branches in mercurial
|
||||
return ['false']
|
||||
return ['hg', 'identify', '--id', '-r', self.branch or self.refspec,
|
||||
'default']
|
||||
|
||||
def checkout_cmd(self, desired_ref, is_branch):
|
||||
cmd = ['hg', 'checkout', desired_ref]
|
||||
|
Loading…
Reference in New Issue
Block a user