Mercurial > hgsubversion
diff hgsubversion/util.py @ 973:21197f5ee9de stable
expand configured paths
author | Dan Villiom Podlaski Christiansen <danchr@gmail.com> |
---|---|
date | Wed, 14 Dec 2011 00:07:57 +0100 |
parents | 9c3b4f59e7e6 |
children | 336f4bce479a |
line wrap: on
line diff
--- a/hgsubversion/util.py +++ b/hgsubversion/util.py @@ -32,6 +32,9 @@ def formatrev(rev): return '\t(working copy)' return '\t(revision %d)' % rev +def configpath(ui, name): + path = ui.config('hgsubversion', name) + return path and hgutil.expandpath(path) def filterdiff(diff, oldrev, newrev): diff = newfile_devnull_re.sub(r'--- \1\t(revision 0)' '\n'