Mercurial > public > mercurial-scm > hg
comparison mercurial/commands.py @ 2799: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 |
comparison
equal
deleted
inserted
replaced
2798:2d60c682a081 | 2799:bd8a9a94139f |
---|---|
38 cwd = repo.getcwd() | 38 cwd = repo.getcwd() |
39 if cwd: | 39 if cwd: |
40 return [util.normpath(os.path.join(cwd, x)) for x in args] | 40 return [util.normpath(os.path.join(cwd, x)) for x in args] |
41 return args | 41 return args |
42 | 42 |
43 def logmessage(**opts): | 43 def logmessage(opts): |
44 """ get the log message according to -m and -l option """ | 44 """ get the log message according to -m and -l option """ |
45 message = opts['message'] | 45 message = opts['message'] |
46 logfile = opts['logfile'] | 46 logfile = opts['logfile'] |
47 | 47 |
48 if message and logfile: | 48 if message and logfile: |
1094 will be committed. | 1094 will be committed. |
1095 | 1095 |
1096 If no commit message is specified, the editor configured in your hgrc | 1096 If no commit message is specified, the editor configured in your hgrc |
1097 or in the EDITOR environment variable is started to enter a message. | 1097 or in the EDITOR environment variable is started to enter a message. |
1098 """ | 1098 """ |
1099 message = logmessage(**opts) | 1099 message = logmessage(opts) |
1100 | 1100 |
1101 if opts['addremove']: | 1101 if opts['addremove']: |
1102 addremove_lock(ui, repo, pats, opts) | 1102 addremove_lock(ui, repo, pats, opts) |
1103 fns, match, anypats = matchpats(repo, pats, opts) | 1103 fns, match, anypats = matchpats(repo, pats, opts) |
1104 if pats: | 1104 if pats: |