[PATCH 3 of 3] largefiles: use ui.configpath() where appropriate
Greg Ward
greg-hg at gerg.ca
Sun Oct 23 18:49:26 UTC 2011
# HG changeset patch
# User Greg Ward <greg at gerg.ca>
# Date 1319394348 14400
# Branch stable
# Node ID 1c760d24d5d60859c87c515c1a396d4b3edaeb8f
# Parent 7e40e247e0cf19110142000748fd17f3ddb8915c
largefiles: use ui.configpath() where appropriate
diff --git a/hgext/largefiles/lfutil.py b/hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py
+++ b/hgext/largefiles/lfutil.py
@@ -82,7 +82,7 @@
os.chmod(dest, os.stat(src).st_mode)
def usercachepath(ui, hash):
- path = ui.config(longname, 'usercache', None)
+ path = ui.configpath(longname, 'usercache', None)
if path:
path = os.path.join(path, hash)
else:
More information about the Mercurial-devel
mailing list