equal
deleted
inserted
replaced
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() |