Skip to content
Snippets Groups Projects
Commit f55869b5 authored by Augie Fackler's avatar Augie Fackler
Browse files

Merge spaces in tags fix.

parents 249ee603 80544310
No related branches found
No related tags found
No related merge requests found
......@@ -578,8 +578,10 @@
labels = lambda c: ctx.tags() + ctx.bookmarks()
else:
labels = lambda c: ctx.tags()
heads = [t for t in labels(ctx) if t in self.local_heads()]
tags = [t for t in labels(ctx) if t in self.tags]
prep = lambda itr: [i.replace(' ', '_') for i in itr]
heads = [t for t in prep(labels(ctx)) if t in self.local_heads()]
tags = [t for t in prep(labels(ctx)) if t in self.tags]
if not (heads or tags):
raise hgutil.Abort("revision %s cannot be pushed since"
......@@ -680,6 +682,7 @@
def export_hg_tags(self):
for tag, sha in self.repo.tags().iteritems():
if self.repo.tagtype(tag) in ('global', 'git'):
tag = tag.replace(' ', '_')
self.git.refs['refs/tags/' + tag] = self.map_git_get(hex(sha))
self.tags[tag] = hex(sha)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment