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