Mercurial > hg
comparison mercurial/dirstate.py @ 18077:777084ac8416 stable
dirstate: remove obsolete comment from setbranch
This comment should have been removed in b74361cf7c0a, when the call
to scmutil.checknewlabel was removed.
author | Tim Henigan <tim.henigan@gmail.com> |
---|---|
date | Thu, 29 Nov 2012 08:44:54 -0500 |
parents | 3bc21f6daac4 |
children | 3d1dc7aeca39 |
comparison
equal
deleted
inserted
replaced
18076:3bc21f6daac4 | 18077:777084ac8416 |
---|---|
258 copies[f] = self._copymap[f] | 258 copies[f] = self._copymap[f] |
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 | |
264 self._branch = encoding.fromlocal(branch) | 263 self._branch = encoding.fromlocal(branch) |
265 f = self._opener('branch', 'w', atomictemp=True) | 264 f = self._opener('branch', 'w', atomictemp=True) |
266 try: | 265 try: |
267 f.write(self._branch + '\n') | 266 f.write(self._branch + '\n') |
268 f.close() | 267 f.close() |