# HG changeset patch # User Pierre-Yves David # Date 1443081390 25200 # 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 -r 2cd19782d2d4 -r ed884807dc48 mercurial/localrepo.py --- a/mercurial/localrepo.py Thu Sep 24 00:56:18 2015 -0700 +++ b/mercurial/localrepo.py Thu Sep 24 00:56:30 2015 -0700 @@ -540,7 +540,7 @@ 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,)