largefiles: remove a mutable default argument

Mutable default arguments are know to the state of California to cause bugs.
This commit is contained in:
Pierre-Yves David 2015-09-24 00:49:02 -07:00
parent ffcbdf7cc8
commit a551464cdd

View File

@ -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