def get_config(config):
cmd = ['git', 'config', '--get', config]
process = subprocess.Popen(cmd, stdout=subprocess.PIPE)
def get_config(config):
cmd = ['git', 'config', '--get', config]
process = subprocess.Popen(cmd, stdout=subprocess.PIPE)
marks.set_tip(ename, rev)
def export_tag(repo, tag):
marks.set_tip(ename, rev)
def export_tag(repo, tag):
- export_ref(repo, tag, 'tags', repo[tag])
+ export_ref(repo, tag, 'tags', repo[hgref(tag)])
export_ref(repo, bmark, 'bookmarks', head)
def export_branch(repo, branch):
export_ref(repo, bmark, 'bookmarks', head)
def export_branch(repo, branch):
if not heads:
return None
# verify there's only one head
if (len(heads) > 1):
warn("Branch '%s' has more than one head, consider merging" % branch)
if not heads:
return None
# verify there's only one head
if (len(heads) > 1):
warn("Branch '%s' has more than one head, consider merging" % branch)
author, msg = parsed_tags.get(tag, (None, None))
if mode == 'git':
if not msg:
author, msg = parsed_tags.get(tag, (None, None))
if mode == 'git':
if not msg: