changeset 26342:46bd31fffccb

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:48:02 -0700
parents f46e7f3b70af
children 019559aa2e80
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: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)