Kiln » Kiln BFiles
Clone URL:  

bfcommands: use repository.local() rather than inspecting the path

Changeset 72bc313a59ac

Parent fe10a46c66a9

by Profile picture of User 521Andrew Pritchard <andrewp@fogcreek.com>

Changes to one file · Browse files at 72bc313a59ac Showing diff from parent fe10a46c66a9 Diff from another changeset...

 
318
319
320
321
322
323
324
325
326
327
 
328
329
330
 
370
371
372
373
 
374
375
376
 
318
319
320
 
 
 
321
322
 
 
323
324
325
326
 
366
367
368
 
369
370
371
372
@@ -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