hgext/largefiles/lfutil.py
changeset 31738 068b06b43cdf
parent 31737 c03af6b44846
child 31739 4e446d31a744
equal deleted inserted replaced
31737:c03af6b44846 31738:068b06b43cdf
   243                      % (filename, path, gothash))
   243                      % (filename, path, gothash))
   244         wvfs.unlink(filename)
   244         wvfs.unlink(filename)
   245         return False
   245         return False
   246     return True
   246     return True
   247 
   247 
   248 def copytostore(repo, revorctx, file, fstandin):
   248 def copytostore(repo, ctx, file, fstandin):
   249     wvfs = repo.wvfs
   249     wvfs = repo.wvfs
   250     hash = readasstandin(repo[revorctx][fstandin])
   250     hash = readasstandin(ctx[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):
   254         copytostoreabsolute(repo, wvfs.join(file), hash)
   254         copytostoreabsolute(repo, wvfs.join(file), hash)
   255     else:
   255     else: