changelog: do not use a mutable default value
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Sat, 31 Oct 2009 16:49:27 +0100
changeset 9677 0c072e63e3e7
parent 9676 48bf28d3c8dd
child 9678 e2b1de5fee04
changelog: do not use a mutable default value
mercurial/changelog.py
--- a/mercurial/changelog.py	Sat Oct 31 16:42:51 2009 +0100
+++ b/mercurial/changelog.py	Sat Oct 31 16:49:27 2009 +0100
@@ -198,7 +198,7 @@
         return (manifest, user, (time, timezone), files, desc, extra)
 
     def add(self, manifest, files, desc, transaction, p1, p2,
-                  user, date=None, extra={}):
+                  user, date=None, extra=None):
         user = user.strip()
         # An empty username or a username with a "\n" will make the
         # revision text contain two "\n\n" sequences -> corrupt