changeset 17820:c547e1acc37c

tag: disallow '\0' in tag names This brings the list of disallowed characters in line with bookmarks.
author Kevin Bullock <kbullock@ringworld.org>
date Wed, 17 Oct 2012 21:39:07 -0500
parents ec892050f3c7
children 361ab1e2086f
files mercurial/localrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):