# HG changeset patch # User Na'Tosha Bard # Date 2012-01-20 10:56:12 # Node ID f9efb325ea32f7c58bf310472c7da6592222ded0 # Parent d7a34c07e69b1130930a45c445eb365fae1642b0 largefiles: fix caching largefiles from an aliased repo (issue3212) diff --git a/hgext/largefiles/basestore.py b/hgext/largefiles/basestore.py --- a/hgext/largefiles/basestore.py +++ b/hgext/largefiles/basestore.py @@ -166,8 +166,11 @@ def _openstore(repo, remote=None, put=Fa ui = repo.ui if not remote: - path = (getattr(repo, 'lfpullsource', None) or - ui.expandpath('default-push', 'default')) + lfpullsource = getattr(repo, 'lfpullsource', None) + if lfpullsource: + path = ui.expandpath(lfpullsource) + else: + path = ui.expandpath('default-push', 'default') # ui.expandpath() leaves 'default-push' and 'default' alone if # they cannot be expanded: fallback to the empty string,