[PATCH] cmdutil.logmessage: options should be optional
Alexander Solovyov
piranha at piranha.org.ua
Mon Jan 19 04:39:00 CST 2009
# HG changeset patch
# User Alexander Solovyov <piranha at piranha.org.ua>
# Date 1232361534 -7200
# Node ID bd5c37d792e6ff5ea7da91e928e5df9b7389bfdd
# Parent 2ad81e9b075b27a34a6d2ac2d94a900015b51a71
cmdutil.logmessage: options should be optional
diff -r 2ad81e9b075b -r bd5c37d792e6 mercurial/cmdutil.py
--- a/mercurial/cmdutil.py Mon Jan 19 00:36:32 2009 +0100
+++ b/mercurial/cmdutil.py Mon Jan 19 12:38:54 2009 +0200
@@ -68,8 +68,8 @@
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 '
More information about the Mercurial-devel
mailing list