mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
largefiles: replace splitstandin() by isstandin() to omit str creation
If splitstandin()-ed str itself isn't used, isstandin() should be used instead of it, to omit meaningless str creation.
This commit is contained in:
parent
53a96c883c
commit
9222f27b6b
@ -351,7 +351,7 @@ def overridelog(orig, ui, repo, *pats, **opts):
|
||||
pats.update(fixpats(f, tostandin) for f in p)
|
||||
else:
|
||||
def tostandin(f):
|
||||
if lfutil.splitstandin(f):
|
||||
if lfutil.isstandin(f):
|
||||
return f
|
||||
return lfutil.standin(f)
|
||||
pats.update(fixpats(f, tostandin) for f in p)
|
||||
|
Loading…
Reference in New Issue
Block a user