[PATCH] largefiles: fix caching largefiles from an aliased repo (issue3212)

Na'Tosha Bard natosha at unity3d.com
Fri Jan 20 04:57:51 CST 2012


# HG changeset patch
# User Na'Tosha Bard <natosha at unity3d.com>
# Date 1327056972 -3600
# Node ID 06254fafcecf43d28e9124ef5fc3b9e1b9e49553
# Parent  878bc4a62a735a1624e9b69c672d5fb5074d4855
largefiles: fix caching largefiles from an aliased repo (issue3212)

diff -r 878bc4a62a73 -r 06254fafcecf hgext/largefiles/basestore.py
--- a/hgext/largefiles/basestore.py	Thu Jan 19 14:31:05 2012 -0600
+++ b/hgext/largefiles/basestore.py	Fri Jan 20 11:56:12 2012 +0100
@@ -166,8 +166,11 @@
     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,


More information about the Mercurial-devel mailing list