Changeset 72bc313a59ac…
Parent fe10a46c66a9…
by Andrew Pritchard <andrewp@fogcreek.com>
Changes to one file · Browse files at 72bc313a59ac Showing diff from parent fe10a46c66a9 Diff from another changeset...
@@ -318,13 +318,9 @@ def uploadbfiles(ui, rsrc, rdst, files):
'''upload big files to the central store'''
- if not files:
- return
-
# Don't upload locally. All bfiles are in the system wide cache
# so the other repo can just get them from there.
- path = hasattr(rdst, "url") and rdst.url() or rdst.path
- if not (path.startswith('http') or path.startswith('ssh')):
+ if not files or repo.local():
return
store = basestore._openstore(rsrc, rdst, put=True)
@@ -370,7 +366,7 @@ at = 0
updated = 0
for bfile in bfiles:
- if filelist == None or bfile in filelist:
+ if filelist is None or bfile in filelist:
if not os.path.exists(repo.wjoin(bfutil.standin(bfile))):
bfdirstate.remove(bfile)
continue
|
Loading...