Mercurial > hg
changeset 14662:2b30124c7d8a
tags: don't allow environment errors to be raised from _writetagscache
See https://bitbucket.org/tortoisehg/thg/issue/719
author | Steve Borho <steve@borho.org> |
---|---|
date | Thu, 16 Jun 2011 15:26:17 -0500 |
parents | 8bbb899620ea |
children | 88cb01c4575e |
files | mercurial/tags.py |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/tags.py Fri Jun 17 13:31:23 2011 -0300 +++ b/mercurial/tags.py Thu Jun 16 15:26:17 2011 -0500 @@ -286,4 +286,7 @@ for (name, (node, hist)) in cachetags.iteritems(): cachefile.write("%s %s\n" % (hex(node), name)) - cachefile.rename() + try: + cachefile.rename() + except (OSError, IOError): + pass