diff mercurial/util.py @ 3853:c0b449154a90

switch to the .hg/store layout, fix the tests
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Fri, 01 Dec 2006 13:34:09 +0100
parents 8a9a1a7e1698
children 4f6db0233606
line wrap: on
line diff
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -897,6 +897,10 @@ def _buildencodefun():
 
 encodefilename, decodefilename = _buildencodefun()
 
+def encodedopener(openerfn, fn):
+    def o(path, *args, **kw):
+        return openerfn(fn(path), *args, **kw)
+    return o
 
 def opener(base, audit=True):
     """