Mercurial > hg-stable
changeset 31416:b8848750a3c1
mq: don't use mutable default argument value
Caught by pylint.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Tue, 14 Mar 2017 23:46:48 -0700 |
parents | e83302d43748 |
children | 6e3c79bc9a35 |
files | hgext/mq.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/mq.py Mon Mar 13 21:43:17 2017 -0700 +++ b/hgext/mq.py Tue Mar 14 23:46:48 2017 -0700 @@ -3439,7 +3439,9 @@ raise error.Abort(errmsg) 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 = {} self.abortifwdirpatched( _('cannot commit over an applied mq patch'), force)