mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
largefiles: remove a mutable default argument
Mutable default arguments are know to the state of California to cause bugs.
This commit is contained in:
parent
ffcbdf7cc8
commit
a551464cdd
@ -1172,8 +1172,10 @@ def overridesummary(orig, ui, repo, *pats, **opts):
|
||||
finally:
|
||||
repo.lfstatus = False
|
||||
|
||||
def scmutiladdremove(orig, repo, matcher, prefix, opts={}, dry_run=None,
|
||||
def scmutiladdremove(orig, repo, matcher, prefix, opts=None, dry_run=None,
|
||||
similarity=None):
|
||||
if opts is None:
|
||||
opts = {}
|
||||
if not lfutil.islfilesrepo(repo):
|
||||
return orig(repo, matcher, prefix, opts, dry_run, similarity)
|
||||
# Get the list of missing largefiles so we can remove them
|
||||
|
Loading…
Reference in New Issue
Block a user