comparison tests/test-rebase-templates.t @ 45770:96fcc37a9c80

rebase: make summary template configurable, with default to shared template Differential Revision: https://phab.mercurial-scm.org/D9251
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 22 Oct 2020 23:10:06 -0700
parents 43c84b816445
children e9555305c5c6
comparison
equal deleted inserted replaced
45769:b4c193509cd0 45770:96fcc37a9c80
80 o 4:849767420fd5 Added c 80 o 4:849767420fd5 Added c
81 | 81 |
82 o 0:18d04c59bb5d Added a 82 o 0:18d04c59bb5d Added a
83 83
84 84
85 Respects command-templates.oneline-summary
86
87 $ hg rebase -r 7 -d 8 -n --config command-templates.oneline-summary='rev: {rev}'
88 starting dry-run rebase; repository will not be changed
89 rebasing rev: 7
90 note: not rebasing rev: 7, its destination already has all its changes
91 dry-run rebase completed successfully; run without -n/--dry-run to perform this rebase
92
93
94 command-templates.oneline-summary.rebase overrides
95
96 $ hg rebase -r 7 -d 8 -n \
97 > --config command-templates.oneline-summary='global: {rev}' \
98 > --config command-templates.oneline-summary.rebase='override: {rev}'
99 starting dry-run rebase; repository will not be changed
100 rebasing override: 7
101 note: not rebasing override: 7, its destination already has all its changes
102 dry-run rebase completed successfully; run without -n/--dry-run to perform this rebase