Show More
@@ -260,8 +260,8 b' class dirstate(object):' | |||
|
260 | 260 | return copies |
|
261 | 261 | |
|
262 | 262 | def setbranch(self, branch): |
|
263 | if branch in ['tip', '.', 'null']: | |
|
264 | raise util.Abort(_('the name \'%s\' is reserved') % branch) | |
|
263 | # no repo object here, just check for reserved names | |
|
264 | scmutil.checknewlabel(None, branch) | |
|
265 | 265 | self._branch = encoding.fromlocal(branch) |
|
266 | 266 | f = self._opener('branch', 'w', atomictemp=True) |
|
267 | 267 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now