hgext/largefiles/reposetup.py
changeset 31410 86dfd31c0329
parent 30233 3afde791dce1
child 31740 a40e979b9d97
--- 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():