Mercurial > hg-stable
changeset 26340:0ddaa2cab926
largefiles: remove a mutable default argument
Mutable default arguments are know to the state of California to cause bugs.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Thu, 24 Sep 2015 00:46:12 -0700 |
parents | 4afdd4283d3e |
children | f46e7f3b70af |
files | hgext/largefiles/overrides.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py Thu Sep 24 00:44:59 2015 -0700 +++ b/hgext/largefiles/overrides.py Thu Sep 24 00:46:12 2015 -0700 @@ -617,7 +617,7 @@ wlock = repo.wlock() manifest = repo[None].manifest() - def overridematch(ctx, pats=[], opts={}, globbed=False, + def overridematch(ctx, pats=(), opts={}, globbed=False, default='relpath', badfn=None): newpats = [] # The patterns were previously mangled to add the standin