Show More
@@ -2768,6 +2768,7 b' def commitforceeditor(repo, ctx, subs, f' | |||||
2768 | while forms: |
|
2768 | while forms: | |
2769 | tmpl = repo.ui.config('committemplate', '.'.join(forms)) |
|
2769 | tmpl = repo.ui.config('committemplate', '.'.join(forms)) | |
2770 | if tmpl: |
|
2770 | if tmpl: | |
|
2771 | tmpl = templater.unquotestring(tmpl) | |||
2771 | templatetext = committext = buildcommittemplate( |
|
2772 | templatetext = committext = buildcommittemplate( | |
2772 | repo, ctx, subs, extramsg, tmpl) |
|
2773 | repo, ctx, subs, extramsg, tmpl) | |
2773 | break |
|
2774 | break |
@@ -387,12 +387,12 b' specific template keywords work well' | |||||
387 |
|
387 | |||
388 | $ cat >> .hg/hgrc <<EOF |
|
388 | $ cat >> .hg/hgrc <<EOF | |
389 | > [committemplate] |
|
389 | > [committemplate] | |
390 | > changeset.commit.normal = HG: this is "commit.normal" template |
|
390 | > changeset.commit.normal = 'HG: this is "commit.normal" template | |
391 |
|
|
391 | > HG: {extramsg} | |
392 | > {if(activebookmark, |
|
392 | > {if(activebookmark, | |
393 |
|
|
393 | > "HG: bookmark '{activebookmark}' is activated\n", | |
394 | > "HG: no bookmark is activated\n")}{subrepos % |
|
394 | > "HG: no bookmark is activated\n")}{subrepos % | |
395 |
|
|
395 | > "HG: subrepo '{subrepo}' is changed\n"}' | |
396 | > |
|
396 | > | |
397 | > changeset.commit = HG: this is "commit" template |
|
397 | > changeset.commit = HG: this is "commit" template | |
398 | > HG: {extramsg} |
|
398 | > HG: {extramsg} |
General Comments 0
You need to be logged in to leave comments.
Login now