# HG changeset patch # User FUJIWARA Katsunori # Date 1490361899 -32400 # Node ID f0f316cb8259faeaf414fe0219be2ecfdb10cc2f # Parent d5d0e6ca62adf0201fef8706836a59afef1ef597 largefiles: omit redundant splitstandin() invocations There are 3 splitstandin() invocations in updatestandin() for same "standin" value. diff -r d5d0e6ca62ad -r f0f316cb8259 hgext/largefiles/lfutil.py --- a/hgext/largefiles/lfutil.py Fri Mar 24 22:24:59 2017 +0900 +++ b/hgext/largefiles/lfutil.py Fri Mar 24 22:24:59 2017 +0900 @@ -343,13 +343,14 @@ return None def updatestandin(repo, standin): - file = repo.wjoin(splitstandin(standin)) - if repo.wvfs.exists(splitstandin(standin)): + lfile = splitstandin(standin) + file = repo.wjoin(lfile) + if repo.wvfs.exists(lfile): hash = hashfile(file) executable = getexecutable(file) writestandin(repo, standin, hash, executable) else: - raise error.Abort(_('%s: file not found!') % splitstandin(standin)) + raise error.Abort(_('%s: file not found!') % lfile) def readstandin(repo, filename, node=None): '''read hex hash from standin for filename at given node, or working