# HG changeset patch # User Alexander Solovyov # Date 2009-01-19 10:38:54 # Node ID bd5c37d792e6ff5ea7da91e928e5df9b7389bfdd # Parent 2ad81e9b075b27a34a6d2ac2d94a900015b51a71 cmdutil.logmessage: options should be optional diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -68,8 +68,8 @@ def bail_if_changed(repo): def logmessage(opts): """ get the log message according to -m and -l option """ - message = opts['message'] - logfile = opts['logfile'] + message = opts.get('message') + logfile = opts.get('logfile') if message and logfile: raise util.Abort(_('options --message and --logfile are mutually '