mercurial/localrepo.py
changeset 15057 774da7121fc9
parent 14936 9dca7653b525
child 15097 cda7a87c1871
equal deleted inserted replaced
15056:8413916df816 15057:774da7121fc9
   519             f = self.opener("cache/branchheads", "w", atomictemp=True)
   519             f = self.opener("cache/branchheads", "w", atomictemp=True)
   520             f.write("%s %s\n" % (hex(tip), tiprev))
   520             f.write("%s %s\n" % (hex(tip), tiprev))
   521             for label, nodes in branches.iteritems():
   521             for label, nodes in branches.iteritems():
   522                 for node in nodes:
   522                 for node in nodes:
   523                     f.write("%s %s\n" % (hex(node), encoding.fromlocal(label)))
   523                     f.write("%s %s\n" % (hex(node), encoding.fromlocal(label)))
   524             f.rename()
   524             f.close()
   525         except (IOError, OSError):
   525         except (IOError, OSError):
   526             pass
   526             pass
   527 
   527 
   528     def _updatebranchcache(self, partial, ctxgen):
   528     def _updatebranchcache(self, partial, ctxgen):
   529         # collect new branch entries
   529         # collect new branch entries