# HG changeset patch # User Pierre-Yves David # Date 2017-03-15 06:49:10 # Node ID 86dfd31c03299fdfc9d2a65dd9a1ab378b94613a # Parent dddc4812aa7aff48b97e2697bac914b1d8c4036a largefiles: don't use mutable default argument value Caught by pylint. diff --git a/hgext/largefiles/reposetup.py b/hgext/largefiles/reposetup.py --- a/hgext/largefiles/reposetup.py +++ b/hgext/largefiles/reposetup.py @@ -272,7 +272,9 @@ def reposetup(ui, repo): # contents updated to reflect the hash of their largefile. # Do that here. def commit(self, text="", user=None, date=None, match=None, - force=False, editor=False, extra={}): + force=False, editor=False, extra=None): + if extra is None: + extra = {} orig = super(lfilesrepo, self).commit with self.wlock():