##// END OF EJS Templates
largefiles: add copytostore() fstandin argument to replace readstandin() (API)...
FUJIWARA Katsunori -
r31736:dd2079fa default
parent child Browse files
Show More
@@ -245,9 +245,9 b' def copyfromcache(repo, hash, filename):'
245 return False
245 return False
246 return True
246 return True
247
247
248 def copytostore(repo, revorctx, file, uploaded=False):
248 def copytostore(repo, revorctx, file, fstandin, uploaded=False):
249 wvfs = repo.wvfs
249 wvfs = repo.wvfs
250 hash = readstandin(repo, file, revorctx)
250 hash = readasstandin(repo[revorctx][fstandin])
251 if instore(repo, hash):
251 if instore(repo, hash):
252 return
252 return
253 if wvfs.exists(file):
253 if wvfs.exists(file):
@@ -263,7 +263,7 b' def copyalltostore(repo, node):'
263 for filename in ctx.files():
263 for filename in ctx.files():
264 realfile = splitstandin(filename)
264 realfile = splitstandin(filename)
265 if realfile is not None and filename in ctx.manifest():
265 if realfile is not None and filename in ctx.manifest():
266 copytostore(repo, ctx, realfile)
266 copytostore(repo, ctx, realfile, filename)
267
267
268 def copytostoreabsolute(repo, file, hash):
268 def copytostoreabsolute(repo, file, hash):
269 if inusercache(repo.ui, hash):
269 if inusercache(repo.ui, hash):
General Comments 0
You need to be logged in to leave comments. Login now