# HG changeset patch # User Pierre-Yves David # Date 2013-01-04 03:52:57 # Node ID cd4c7520020691c992e23d2eb2781ce9a1d7037a # Parent c38a62af000e3bd4a760066656751a8132c54c2c branchmap: ignore Abort error while writing cache Read only vfs can now raise Abort exception. Note that encoding.local are also a possible raiser. diff --git a/mercurial/branchmap.py b/mercurial/branchmap.py --- a/mercurial/branchmap.py +++ b/mercurial/branchmap.py @@ -139,7 +139,8 @@ class branchcache(dict): for node in nodes: f.write("%s %s\n" % (hex(node), encoding.fromlocal(label))) f.close() - except (IOError, OSError): + except (IOError, OSError, util.Abort): + # Abort may be raise by read only opener pass def update(self, repo, ctxgen):