equal
deleted
inserted
replaced
259 self.normallookup(f) |
259 self.normallookup(f) |
260 return copies |
260 return copies |
261 |
261 |
262 def setbranch(self, branch): |
262 def setbranch(self, branch): |
263 # no repo object here, just check for reserved names |
263 # no repo object here, just check for reserved names |
264 scmutil.checknewlabel(None, branch, 'branch') |
|
265 self._branch = encoding.fromlocal(branch) |
264 self._branch = encoding.fromlocal(branch) |
266 f = self._opener('branch', 'w', atomictemp=True) |
265 f = self._opener('branch', 'w', atomictemp=True) |
267 try: |
266 try: |
268 f.write(self._branch + '\n') |
267 f.write(self._branch + '\n') |
269 finally: |
268 finally: |