diff mercurial/cmdutil.py @ 7667:bd5c37d792e6

cmdutil.logmessage: options should be optional
author Alexander Solovyov <piranha@piranha.org.ua>
date Mon, 19 Jan 2009 12:38:54 +0200 (2009-01-19)
parents 9a1ea6587557
children fece056bf240
line wrap: on
line diff
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -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 '