# HG changeset patch # User Pierre-Yves David # Date 1443080772 25200 # Node ID 0ddaa2cab926ba07cc8ad3c896b26c80c6a7fbf9 # Parent 4afdd4283d3e0f62c43614890ccdafabd6497e7e largefiles: remove a mutable default argument Mutable default arguments are know to the state of California to cause bugs. diff -r 4afdd4283d3e -r 0ddaa2cab926 hgext/largefiles/overrides.py --- 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