Submitter | Augie Fackler |
---|---|
Date | Dec. 2, 2015, 4:19 p.m. |
Message ID | <32b95ec9058de8565b64.1449073151@imladris.local> |
Download | mbox | patch |
Permalink | /patch/11753/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/bookmarks.py b/mercurial/bookmarks.py --- a/mercurial/bookmarks.py +++ b/mercurial/bookmarks.py @@ -164,6 +164,10 @@ def readactive(repo): mark = encoding.tolocal((file.readlines() or [''])[0]) if mark == '' or mark not in repo._bookmarks: mark = None + except IOError as inst: + if inst.errno != errno.ENOENT: + raise + return None finally: file.close() return mark