changeset 49314 | 2e726c934fcd |
parent 49292 | d44e3c45f0e4 |
child 49474 | b57c95a0f5f9 |
--- a/mercurial/phases.py Tue May 31 21:16:17 2022 +0200 +++ b/mercurial/phases.py Tue May 31 22:50:01 2022 +0200 @@ -101,7 +101,6 @@ """ -import errno import struct from .i18n import _ @@ -202,9 +201,7 @@ roots[int(phase)].add(bin(nh)) finally: f.close() - except IOError as inst: - if inst.errno != errno.ENOENT: - raise + except FileNotFoundError: if phasedefaults: for f in phasedefaults: roots = f(repo, roots)