equal
deleted
inserted
replaced
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 |