# HG changeset patch # User Vadim Gelfer # Date 1154996584 25200 # Node ID bd8a9a94139fb214c45e8c7426943d0763f269b0 # Parent 2d60c682a0819db3df4b5f3c9f07fcc0c041817d commands.logmessage: simplify calling. diff -r 2d60c682a081 -r bd8a9a94139f mercurial/commands.py --- a/mercurial/commands.py Mon Aug 07 17:22:17 2006 -0700 +++ b/mercurial/commands.py Mon Aug 07 17:23:04 2006 -0700 @@ -40,7 +40,7 @@ return [util.normpath(os.path.join(cwd, x)) for x in args] return args -def logmessage(**opts): +def logmessage(opts): """ get the log message according to -m and -l option """ message = opts['message'] logfile = opts['logfile'] @@ -1096,7 +1096,7 @@ If no commit message is specified, the editor configured in your hgrc or in the EDITOR environment variable is started to enter a message. """ - message = logmessage(**opts) + message = logmessage(opts) if opts['addremove']: addremove_lock(ui, repo, pats, opts)