Mercurial > hg
changeset 14646:001788ef4bbb
localrepo: don't attempt to open .hgtags twice if the error isn't ENOENT
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Wed, 15 Jun 2011 23:15:04 +0300 |
parents | e4cfdff6d3f4 |
children | 2e9f379de0ac |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Thu Jun 16 01:58:00 2011 +0200 +++ b/mercurial/localrepo.py Wed Jun 15 23:15:04 2011 +0300 @@ -272,7 +272,9 @@ try: fp = self.wfile('.hgtags', 'rb+') - except IOError: + except IOError, e: + if e.errno != errno.ENOENT: + raise fp = self.wfile('.hgtags', 'ab') else: prevtags = fp.read()