Commits

Pierre-Yves David committed cd4c752

branchmap: ignore Abort error while writing cache

Read only vfs can now raise Abort exception. Note that encoding.local are also a
possible raiser.

Comments (0)

Files changed (1)

mercurial/branchmap.py

                 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):