Patchwork D5264: store: raise ProgrammingError if unable to decode a storage path

login
register
mail settings
Submitter phabricator
Date Nov. 14, 2018, 12:29 p.m.
Message ID <da7442257955e0f816874bb8de3c4938@localhost.localdomain>
Download mbox | patch
Permalink /patch/36565/
State Not Applicable
Headers show

Comments

phabricator - Nov. 14, 2018, 12:29 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG66adfd58cb77: store: raise ProgrammingError if unable to decode a storage path (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5264?vs=12521&id=12531

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

AFFECTED FILES
  mercurial/store.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/store.py b/mercurial/store.py
--- a/mercurial/store.py
+++ b/mercurial/store.py
@@ -38,6 +38,8 @@ 
     elif path.startswith('meta/'):
         return matcher.visitdir(path[len('meta/'):-len('/00manifest.i')] or '.')
 
+    raise error.ProgrammingError("cannot decode path %s" % path)
+
 # This avoids a collision between a file named foo and a dir named
 # foo.i or foo.d
 def _encodedir(path):