hgext/largefiles/basestore.py
branchstable
changeset 23941 164bd5218ddb
parent 19950 cce7ab960312
child 25660 328739ea70c3
--- a/hgext/largefiles/basestore.py	Fri Jan 23 06:28:28 2015 +0100
+++ b/hgext/largefiles/basestore.py	Fri Jan 23 18:41:37 2015 +0100
@@ -181,8 +181,10 @@
         lfpullsource = getattr(repo, 'lfpullsource', None)
         if lfpullsource:
             path = ui.expandpath(lfpullsource)
+        elif put:
+            path = ui.expandpath('default-push', 'default')
         else:
-            path = ui.expandpath('default-push', 'default')
+            path = ui.expandpath('default')
 
         # ui.expandpath() leaves 'default-push' and 'default' alone if
         # they cannot be expanded: fallback to the empty string,