##// END OF EJS Templates
largefiles: omit redundant splitstandin() invocations...
FUJIWARA Katsunori -
r31615:f0f316cb default
parent child Browse files
Show More
@@ -343,13 +343,14 b' def splitstandin(filename):'
343 return None
343 return None
344
344
345 def updatestandin(repo, standin):
345 def updatestandin(repo, standin):
346 file = repo.wjoin(splitstandin(standin))
346 lfile = splitstandin(standin)
347 if repo.wvfs.exists(splitstandin(standin)):
347 file = repo.wjoin(lfile)
348 if repo.wvfs.exists(lfile):
348 hash = hashfile(file)
349 hash = hashfile(file)
349 executable = getexecutable(file)
350 executable = getexecutable(file)
350 writestandin(repo, standin, hash, executable)
351 writestandin(repo, standin, hash, executable)
351 else:
352 else:
352 raise error.Abort(_('%s: file not found!') % splitstandin(standin))
353 raise error.Abort(_('%s: file not found!') % lfile)
353
354
354 def readstandin(repo, filename, node=None):
355 def readstandin(repo, filename, node=None):
355 '''read hex hash from standin for filename at given node, or working
356 '''read hex hash from standin for filename at given node, or working
General Comments 0
You need to be logged in to leave comments. Login now