diff hgext/largefiles/reposetup.py @ 31410:86dfd31c0329

largefiles: don't use mutable default argument value Caught by pylint.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Tue, 14 Mar 2017 23:49:10 -0700
parents 3afde791dce1
children a40e979b9d97
line wrap: on
line diff
--- a/hgext/largefiles/reposetup.py	Tue Mar 14 23:48:25 2017 -0700
+++ b/hgext/largefiles/reposetup.py	Tue Mar 14 23:49:10 2017 -0700
@@ -272,7 +272,9 @@
         # 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():