diff -r 2b8cb0ab231c -r dce718404ce6 mercurial/state.py --- a/mercurial/state.py Tue May 22 11:20:55 2018 -0700 +++ b/mercurial/state.py Wed May 23 03:13:04 2018 +0530 @@ -72,8 +72,8 @@ try: int(fp.readline()) except ValueError: - raise error.ProgrammingError("unknown version of state file" - " found") + raise error.CorruptedState("unknown version of state file" + " found") return cbor.load(fp) def delete(self):