# HG changeset patch # User Pierre-Yves David # Date 1443080453 25200 # Node ID ec2662b9629deff151b575421d7ab45ecb969429 # Parent 6c93834d7d6617fc3bada770f04ac8e3c8d4c74a largefiles: remove a mutable default argument Mutable default arguments are know to the state of California to cause bugs. diff -r 6c93834d7d66 -r ec2662b9629d hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py Thu Sep 24 00:38:34 2015 -0700 +++ b/hgext/largefiles/overrides.py Thu Sep 24 00:40:53 2015 -0700 @@ -50,7 +50,7 @@ def installnormalfilesmatchfn(manifest): '''installmatchfn with a matchfn that ignores all largefiles''' - def overridematch(ctx, pats=[], opts={}, globbed=False, + def overridematch(ctx, pats=(), opts={}, globbed=False, default='relpath', badfn=None): match = oldmatch(ctx, pats, opts, globbed, default, badfn=badfn) return composenormalfilematcher(match, manifest)