Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
3852:8a9a1a7e1698 | 3853:c0b449154a90 |
---|---|
895 return (lambda s: "".join([cmap[c] for c in s]), | 895 return (lambda s: "".join([cmap[c] for c in s]), |
896 lambda s: "".join(list(decode(s)))) | 896 lambda s: "".join(list(decode(s)))) |
897 | 897 |
898 encodefilename, decodefilename = _buildencodefun() | 898 encodefilename, decodefilename = _buildencodefun() |
899 | 899 |
900 def encodedopener(openerfn, fn): | |
901 def o(path, *args, **kw): | |
902 return openerfn(fn(path), *args, **kw) | |
903 return o | |
900 | 904 |
901 def opener(base, audit=True): | 905 def opener(base, audit=True): |
902 """ | 906 """ |
903 return a function that opens files relative to base | 907 return a function that opens files relative to base |
904 | 908 |