Show More
@@ -244,7 +244,11 class dirstate(object): | |||
|
244 | 244 | if branch in ['tip', '.', 'null']: |
|
245 | 245 | raise util.Abort(_('the name \'%s\' is reserved') % branch) |
|
246 | 246 | self._branch = encoding.fromlocal(branch) |
|
247 | self._opener.write("branch", self._branch + '\n') | |
|
247 | f = self._opener('branch', 'w', atomictemp=True) | |
|
248 | try: | |
|
249 | f.write(self._branch + '\n') | |
|
250 | finally: | |
|
251 | f.close() | |
|
248 | 252 | |
|
249 | 253 | def _read(self): |
|
250 | 254 | self._map = {} |
General Comments 0
You need to be logged in to leave comments.
Login now