changeset 9677:0c072e63e3e7

changelog: do not use a mutable default value
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sat, 31 Oct 2009 16:49:27 +0100
parents 48bf28d3c8dd
children e2b1de5fee04
files mercurial/changelog.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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