Submitter | Matt Mackall |
---|---|
Date | April 28, 2016, 9:54 p.m. |
Message ID | <369f16a0fbd46c826ee7.1461880468@ruin.waste.org> |
Download | mbox | patch |
Permalink | /patch/14827/ |
State | Accepted |
Delegated to: | Yuya Nishihara |
Headers | show |
Comments
Patch
diff -r 30ea1355f34f -r 369f16a0fbd4 mercurial/tags.py --- a/mercurial/tags.py Thu Apr 28 15:35:54 2016 -0500 +++ b/mercurial/tags.py Thu Apr 28 15:40:43 2016 -0500 @@ -433,7 +433,10 @@ self._raw = array('c') - data = repo.vfs.tryread(_fnodescachefile) + try: + data = repo.vfs.read(_fnodescachefile) + except (OSError, IOError): + data = "" self._raw.fromstring(data) # The end state of self._raw is an array that is of the exact length