Show More
@@ -2171,6 +2171,8 b' def commiteditor(repo, ctx, subs):' | |||||
2171 | return commitforceeditor(repo, ctx, subs) |
|
2171 | return commitforceeditor(repo, ctx, subs) | |
2172 |
|
2172 | |||
2173 | def commitforceeditor(repo, ctx, subs, finishdesc=None, extramsg=None): |
|
2173 | def commitforceeditor(repo, ctx, subs, finishdesc=None, extramsg=None): | |
|
2174 | if not extramsg: | |||
|
2175 | extramsg = _("Leave message empty to abort commit.") | |||
2174 | committext = buildcommittext(repo, ctx, subs, extramsg) |
|
2176 | committext = buildcommittext(repo, ctx, subs, extramsg) | |
2175 |
|
2177 | |||
2176 | # run editor in the repository root |
|
2178 | # run editor in the repository root | |
@@ -2196,10 +2198,7 b' def buildcommittext(repo, ctx, subs, ext' | |||||
2196 | edittext.append("") # Empty line between message and comments. |
|
2198 | edittext.append("") # Empty line between message and comments. | |
2197 | edittext.append(_("HG: Enter commit message." |
|
2199 | edittext.append(_("HG: Enter commit message." | |
2198 | " Lines beginning with 'HG:' are removed.")) |
|
2200 | " Lines beginning with 'HG:' are removed.")) | |
2199 | if extramsg: |
|
2201 | edittext.append("HG: %s" % extramsg) | |
2200 | edittext.append("HG: %s" % extramsg) |
|
|||
2201 | else: |
|
|||
2202 | edittext.append(_("HG: Leave message empty to abort commit.")) |
|
|||
2203 | edittext.append("HG: --") |
|
2202 | edittext.append("HG: --") | |
2204 | edittext.append(_("HG: user: %s") % ctx.user()) |
|
2203 | edittext.append(_("HG: user: %s") % ctx.user()) | |
2205 | if ctx.p2(): |
|
2204 | if ctx.p2(): |
General Comments 0
You need to be logged in to leave comments.
Login now