Changed tagging and branching to not allow spaces in tag/branch name.

Sat, 17 Apr 2010 16:54:38 +0000

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 17 Apr 2010 16:54:38 +0000
changeset 182
5fb26c972892
parent 181
4af57f97c1bc
child 183
15c46d005515

Changed tagging and branching to not allow spaces in tag/branch name.

Plugins/VcsPlugins/vcsMercurial/hg.py file | annotate | diff | comparison | revisions
diff -r 4af57f97c1bc -r 5fb26c972892 Plugins/VcsPlugins/vcsMercurial/hg.py
--- a/Plugins/VcsPlugins/vcsMercurial/hg.py	Sat Apr 17 16:43:18 2010 +0000
+++ b/Plugins/VcsPlugins/vcsMercurial/hg.py	Sat Apr 17 16:54:38 2010 +0000
@@ -688,6 +688,7 @@
             args.append('--remove')
         args.append('--message')
         if tagOp != HgTagDialog.DeleteTag:
+            tag = tag.strip().replace(" ", "_")
             args.append("Created tag <{0}>.".format(tag))
         else:
             args.append("Removed tag <{0}>.".format(tag))
@@ -1462,7 +1463,7 @@
         if ok and name:
             args = []
             args.append('branch')
-            args.append(name)
+            args.append(name.strip().replace(" ", "_"))
             
             dia = HgDialog(self.trUtf8('Creating branch in the Mercurial repository'))
             res = dia.startProcess(args, repodir)

eric ide

mercurial