# HG changeset patch # User Pierre-Yves David # Date 1489560408 25200 # Node ID b8848750a3c116071516c6748d34010190e670cc # Parent e83302d437485620c9bc25921f724af34cd5dd55 mq: don't use mutable default argument value Caught by pylint. diff -r e83302d43748 -r b8848750a3c1 hgext/mq.py --- 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)