Show More
@@ -1056,13 +1056,12 b' def bailifchanged(repo, merge=True, hint' | |||
|
1056 | 1056 | |
|
1057 | 1057 | def logmessage(ui, opts): |
|
1058 | 1058 | """ get the log message according to -m and -l option """ |
|
1059 | ||
|
1060 | check_at_most_one_arg(opts, b'message', b'logfile') | |
|
1061 | ||
|
1059 | 1062 | message = opts.get(b'message') |
|
1060 | 1063 | logfile = opts.get(b'logfile') |
|
1061 | 1064 | |
|
1062 | if message and logfile: | |
|
1063 | raise error.Abort( | |
|
1064 | _(b'options --message and --logfile are mutually exclusive') | |
|
1065 | ) | |
|
1066 | 1065 | if not message and logfile: |
|
1067 | 1066 | try: |
|
1068 | 1067 | if isstdiofilename(logfile): |
@@ -129,7 +129,7 b' Amend with editor' | |||
|
129 | 129 | |
|
130 | 130 | $ echo FOO > $TESTTMP/msg |
|
131 | 131 | $ hg amend -l $TESTTMP/msg -m BAR |
|
132 |
abort: |
|
|
132 | abort: cannot specify both --message and --logfile | |
|
133 | 133 | [255] |
|
134 | 134 | $ hg amend -l $TESTTMP/msg |
|
135 | 135 | saved backup bundle to $TESTTMP/repo1/.hg/strip-backup/974f07f28537-edb6470a-amend.hg (obsstore-off !) |
General Comments 0
You need to be logged in to leave comments.
Login now