Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 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 | e6067bec18da |
children | 361ab1e2086f |
comparison
equal
deleted
inserted
replaced
17819:ec892050f3c7 | 17820:c547e1acc37c |
---|---|
383 return 'file:' + self.root | 383 return 'file:' + self.root |
384 | 384 |
385 def hook(self, name, throw=False, **args): | 385 def hook(self, name, throw=False, **args): |
386 return hook.hook(self.ui, self, name, throw, **args) | 386 return hook.hook(self.ui, self, name, throw, **args) |
387 | 387 |
388 tag_disallowed = ':\r\n' | 388 tag_disallowed = ':\0\r\n' |
389 | 389 |
390 def _tag(self, names, node, message, local, user, date, extra={}): | 390 def _tag(self, names, node, message, local, user, date, extra={}): |
391 if isinstance(names, str): | 391 if isinstance(names, str): |
392 allchars = names | 392 allchars = names |
393 names = (names,) | 393 names = (names,) |