diff hgext/largefiles/lfcommands.py @ 15317:41f371150ccb stable

largefiles: make the store primary, and the user cache secondary This uses the now-properly-named functions and methods from the previous patch to actually deliver the desired behavior
author Benjamin Pollack <benjamin@bitquabit.com>
date Thu, 20 Oct 2011 13:24:11 -0400
parents 3eb1a90ea409
children 0db47b8d025f
line wrap: on
line diff
--- a/hgext/largefiles/lfcommands.py	Thu Oct 20 13:24:09 2011 -0400
+++ b/hgext/largefiles/lfcommands.py	Thu Oct 20 13:24:11 2011 -0400
@@ -336,9 +336,7 @@
 def uploadlfiles(ui, rsrc, rdst, files):
     '''upload largefiles to the central store'''
 
-    # Don't upload locally. All largefiles are in the system wide cache
-    # so the other repo can just get them from there.
-    if not files or rdst.local():
+    if not files:
         return
 
     store = basestore._openstore(rsrc, rdst, put=True)