# HG changeset patch # User Pierre-Yves David # Date 1443080882 25200 # Node ID 46bd31fffccb8a84902d68731f81ae5906737bf7 # Parent f46e7f3b70af84491fe802ca0487c18b23a0651d largefiles: remove a mutable default argument Mutable default arguments are know to the state of California to cause bugs. diff -r f46e7f3b70af -r 46bd31fffccb hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py Thu Sep 24 00:46:37 2015 -0700 +++ b/hgext/largefiles/overrides.py Thu Sep 24 00:48:02 2015 -0700 @@ -728,7 +728,7 @@ oldstandins = lfutil.getstandinsstate(repo) - def overridematch(mctx, pats=[], opts={}, globbed=False, + def overridematch(mctx, pats=(), opts={}, globbed=False, default='relpath', badfn=None): match = oldmatch(mctx, pats, opts, globbed, default, badfn=badfn) m = copy.copy(match)