# HG changeset patch # User Pierre-Yves David # Date 2015-09-24 07:56:30 # Node ID ed884807dc488cb0fdfe5c7b591cb4ba549c22e6 # Parent 2cd19782d2d49d0ac2ef23b7968ed16d94a182d4 tag: remove a mutable default argument Mutable default arguments are know to the state of California to cause bugs. We just added support of None for the underlying function, so nothing else the required. diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -540,7 +540,7 @@ class localrepository(object): return hook.hook(self.ui, self, name, throw, **args) @unfilteredmethod - def _tag(self, names, node, message, local, user, date, extra={}, + def _tag(self, names, node, message, local, user, date, extra=None, editor=False): if isinstance(names, str): names = (names,)