tag: disallow '\0' in tag names
authorKevin Bullock <kbullock@ringworld.org>
Wed, 17 Oct 2012 21:39:07 -0500
changeset 17820 c547e1acc37c
parent 17819 ec892050f3c7
child 17821 361ab1e2086f
tag: disallow '\0' in tag names This brings the list of disallowed characters in line with bookmarks.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Wed Oct 17 21:32:19 2012 -0500
+++ b/mercurial/localrepo.py	Wed Oct 17 21:39:07 2012 -0500
@@ -385,7 +385,7 @@
     def hook(self, name, throw=False, **args):
         return hook.hook(self.ui, self, name, throw, **args)
 
-    tag_disallowed = ':\r\n'
+    tag_disallowed = ':\0\r\n'
 
     def _tag(self, names, node, message, local, user, date, extra={}):
         if isinstance(names, str):