changeset 17819 | ec892050f3c7 |
parent 17733 | 3c775c5a6c03 |
child 17821 | 361ab1e2086f |
--- a/mercurial/dirstate.py Wed Oct 17 17:23:39 2012 -0500 +++ b/mercurial/dirstate.py Wed Oct 17 21:32:19 2012 -0500 @@ -260,8 +260,8 @@ return copies def setbranch(self, branch): - if branch in ['tip', '.', 'null']: - raise util.Abort(_('the name \'%s\' is reserved') % branch) + # no repo object here, just check for reserved names + scmutil.checknewlabel(None, branch) self._branch = encoding.fromlocal(branch) f = self._opener('branch', 'w', atomictemp=True) try: