mercurial/state.py
changeset 38133 dce718404ce6
parent 38127 b7e5c53a779e
child 38145 6f67bfe4b82f
--- 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):