Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/commands.py @ 2794:bd8a9a94139f
commands.logmessage: simplify calling.
author | Vadim Gelfer <vadim.gelfer@gmail.com> |
---|---|
date | Mon, 07 Aug 2006 17:23:04 -0700 |
parents | e3564699409c |
children | 987c31e2a08c |
line wrap: on
line diff
--- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -40,7 +40,7 @@ def relpath(repo, args): 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 @@ def commit(ui, repo, *pats, **opts): 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)