# HG changeset patch # User Pierre-Yves David # Date 1443080672 25200 # Node ID 52c68fb827aeafc8bb45fc58f343bf95f4e1537c # Parent 932330c3f4694281aad578f4156aab28fb145544 largefiles: remove a mutable default argument Mutable default arguments are know to the state of California to cause bugs. diff -r 932330c3f469 -r 52c68fb827ae hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py Thu Sep 24 00:41:43 2015 -0700 +++ b/hgext/largefiles/overrides.py Thu Sep 24 00:44:32 2015 -0700 @@ -289,7 +289,7 @@ repo._repo.lfstatus = False def overridelog(orig, ui, repo, *pats, **opts): - def overridematchandpats(ctx, pats=[], opts={}, globbed=False, + def overridematchandpats(ctx, pats=(), opts={}, globbed=False, default='relpath', badfn=None): """Matcher that merges root directory with .hglf, suitable for log. It is still possible to match .hglf directly.