D3644: state: raise CorruptedState error isntead of ProgrammingError

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Wed May 23 08:34:26 EDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGdce718404ce6: state: raise CorruptedState error isntead of ProgrammingError (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3644?vs=8873&id=8879

REVISION DETAIL
  https://phab.mercurial-scm.org/D3644

AFFECTED FILES
  mercurial/state.py

CHANGE DETAILS

diff --git a/mercurial/state.py b/mercurial/state.py
--- a/mercurial/state.py
+++ b/mercurial/state.py
@@ -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):



To: pulkit, #hg-reviewers
Cc: mercurial-devel


More information about the Mercurial-devel mailing list