mercurial/store.py
changeset 17586 2f1475da1940
parent 17585 8ed2783f338f
child 17587 5fb8cf6f4f58
--- a/mercurial/store.py	Sat Sep 15 21:43:56 2012 +0200
+++ b/mercurial/store.py	Sat Sep 15 21:44:08 2012 +0200
@@ -22,8 +22,6 @@
     >>> encodedir('data/foo.i.hg/bla.i')
     'data/foo.i.hg.hg/bla.i'
     '''
-    if not path.startswith('data/'):
-        return path
     return (path
             .replace(".hg/", ".hg.hg/")
             .replace(".i/", ".i.hg/")
@@ -38,7 +36,7 @@
     >>> decodedir('data/foo.i.hg.hg/bla.i')
     'data/foo.i.hg/bla.i'
     '''
-    if not path.startswith('data/') or ".hg/" not in path:
+    if ".hg/" not in path:
         return path
     return (path
             .replace(".d.hg/", ".d/")