hgext/largefiles/lfutil.py
branchstable
changeset 27947 571ba161f6be
parent 27942 eb1135d5e688
child 28464 6e34690230c0
equal deleted inserted replaced
27946:ca8d2b73155d 27947:571ba161f6be
   317     file = repo.wjoin(splitstandin(standin))
   317     file = repo.wjoin(splitstandin(standin))
   318     if os.path.exists(file):
   318     if os.path.exists(file):
   319         hash = hashfile(file)
   319         hash = hashfile(file)
   320         executable = getexecutable(file)
   320         executable = getexecutable(file)
   321         writestandin(repo, standin, hash, executable)
   321         writestandin(repo, standin, hash, executable)
       
   322     else:
       
   323         raise error.Abort(_('%s: file not found!') % splitstandin(standin))
   322 
   324 
   323 def readstandin(repo, filename, node=None):
   325 def readstandin(repo, filename, node=None):
   324     '''read hex hash from standin for filename at given node, or working
   326     '''read hex hash from standin for filename at given node, or working
   325     directory if no node is given'''
   327     directory if no node is given'''
   326     return repo[node][standin(filename)].data().strip()
   328     return repo[node][standin(filename)].data().strip()