Show More
@@ -1224,13 +1224,11 b' def format_changeset_summary(ui, ctx, co' | |||||
1224 | if not spec: |
|
1224 | if not spec: | |
1225 | spec = ( |
|
1225 | spec = ( | |
1226 | b'{separate(" ", ' |
|
1226 | b'{separate(" ", ' | |
1227 |
b'label(" |
|
1227 | b'label("oneline-summary.changeset", "{rev}:{node|short}")' | |
1228 | b', ' |
|
|||
1229 | b'label("log.tag", tags)' |
|
|||
1230 | b', ' |
|
1228 | b', ' | |
1231 | b'label("log.bookmark", bookmarks)' |
|
1229 | b'join(filter(namespaces % "{ifeq(namespace, "branches", "", join(names % "{label("oneline-summary.{namespace}", name)}", " "))}"), " ")' | |
1232 | b')} ' |
|
1230 | b')} ' | |
1233 |
b'"{label(" |
|
1231 | b'"{label("oneline-summary.desc", desc|firstline)}"' | |
1234 | ) |
|
1232 | ) | |
1235 | text = rendertemplate(ctx, spec) |
|
1233 | text = rendertemplate(ctx, spec) | |
1236 | return text.split(b'\n')[0] |
|
1234 | return text.split(b'\n')[0] |
@@ -37,7 +37,7 b' bookmark list' | |||||
37 | rebase |
|
37 | rebase | |
38 |
|
38 | |||
39 | $ hg rebase -s two -d one |
|
39 | $ hg rebase -s two -d one | |
40 |
rebasing 3:2ae46b1d99a7 tip |
|
40 | rebasing 3:2ae46b1d99a7 two tip "3" | |
41 | saved backup bundle to $TESTTMP/.hg/strip-backup/2ae46b1d99a7-e6b057bc-rebase.hg |
|
41 | saved backup bundle to $TESTTMP/.hg/strip-backup/2ae46b1d99a7-e6b057bc-rebase.hg | |
42 |
|
42 | |||
43 | $ hg log |
|
43 | $ hg log | |
@@ -77,7 +77,7 b' aborted rebase should restore active boo' | |||||
77 | created new head |
|
77 | created new head | |
78 | $ hg bookmark three |
|
78 | $ hg bookmark three | |
79 | $ hg rebase -s three -d two |
|
79 | $ hg rebase -s three -d two | |
80 |
rebasing 4:dd7c838e8362 tip |
|
80 | rebasing 4:dd7c838e8362 three tip "4" | |
81 | merging d |
|
81 | merging d | |
82 | warning: conflicts while merging d! (edit, then use 'hg resolve --mark') |
|
82 | warning: conflicts while merging d! (edit, then use 'hg resolve --mark') | |
83 | unresolved conflicts (see 'hg resolve', then 'hg rebase --continue') |
|
83 | unresolved conflicts (see 'hg resolve', then 'hg rebase --continue') | |
@@ -92,7 +92,7 b' aborted rebase should restore active boo' | |||||
92 | after aborted rebase, restoring a bookmark that has been removed should not fail |
|
92 | after aborted rebase, restoring a bookmark that has been removed should not fail | |
93 |
|
93 | |||
94 | $ hg rebase -s three -d two |
|
94 | $ hg rebase -s three -d two | |
95 |
rebasing 4:dd7c838e8362 tip |
|
95 | rebasing 4:dd7c838e8362 three tip "4" | |
96 | merging d |
|
96 | merging d | |
97 | warning: conflicts while merging d! (edit, then use 'hg resolve --mark') |
|
97 | warning: conflicts while merging d! (edit, then use 'hg resolve --mark') | |
98 | unresolved conflicts (see 'hg resolve', then 'hg rebase --continue') |
|
98 | unresolved conflicts (see 'hg resolve', then 'hg rebase --continue') |
@@ -274,7 +274,7 b' rebase abort should not leave working co' | |||||
274 |
|
274 | |||
275 |
|
275 | |||
276 | $ hg rebase -d master -r foo |
|
276 | $ hg rebase -d master -r foo | |
277 |
rebasing 3:6c0f977a22d8 tip |
|
277 | rebasing 3:6c0f977a22d8 foo tip "C" | |
278 | merging c |
|
278 | merging c | |
279 | warning: conflicts while merging c! (edit, then use 'hg resolve --mark') |
|
279 | warning: conflicts while merging c! (edit, then use 'hg resolve --mark') | |
280 | unresolved conflicts (see 'hg resolve', then 'hg rebase --continue') |
|
280 | unresolved conflicts (see 'hg resolve', then 'hg rebase --continue') | |
@@ -314,7 +314,7 b' user has somehow managed to update to a ' | |||||
314 | created new head |
|
314 | created new head | |
315 |
|
315 | |||
316 | $ hg rebase -d @ -b foo --tool=internal:fail |
|
316 | $ hg rebase -d @ -b foo --tool=internal:fail | |
317 |
rebasing 2:070cf4580bb5 |
|
317 | rebasing 2:070cf4580bb5 foo tip "b2" | |
318 | unresolved conflicts (see 'hg resolve', then 'hg rebase --continue') |
|
318 | unresolved conflicts (see 'hg resolve', then 'hg rebase --continue') | |
319 | [1] |
|
319 | [1] | |
320 |
|
320 |
@@ -97,7 +97,7 b' Do not try to keep active but deleted di' | |||||
97 | $ hg book W@diverge |
|
97 | $ hg book W@diverge | |
98 |
|
98 | |||
99 | $ hg rebase -s W -d . |
|
99 | $ hg rebase -s W -d . | |
100 |
rebasing 3:41acb9dca9eb tip |
|
100 | rebasing 3:41acb9dca9eb W tip "D" | |
101 | saved backup bundle to $TESTTMP/a4/.hg/strip-backup/41acb9dca9eb-b35a6a63-rebase.hg |
|
101 | saved backup bundle to $TESTTMP/a4/.hg/strip-backup/41acb9dca9eb-b35a6a63-rebase.hg | |
102 |
|
102 | |||
103 | $ hg bookmarks |
|
103 | $ hg bookmarks | |
@@ -209,7 +209,7 b' as --rev arguments (issue3950)' | |||||
209 | $ hg rebase -r '"bisect"^^::"bisect"^' -r bisect -d Z |
|
209 | $ hg rebase -r '"bisect"^^::"bisect"^' -r bisect -d Z | |
210 | rebasing 5:345c90f326a4 "bisect" |
|
210 | rebasing 5:345c90f326a4 "bisect" | |
211 | rebasing 6:f677a2907404 "bisect2" |
|
211 | rebasing 6:f677a2907404 "bisect2" | |
212 |
rebasing 7:325c16001345 |
|
212 | rebasing 7:325c16001345 bisect tip "bisect3" | |
213 | saved backup bundle to $TESTTMP/a3/.hg/strip-backup/345c90f326a4-b4840586-rebase.hg |
|
213 | saved backup bundle to $TESTTMP/a3/.hg/strip-backup/345c90f326a4-b4840586-rebase.hg | |
214 |
|
214 | |||
215 | Bookmark and working parent get moved even if --keep is set (issue5682) |
|
215 | Bookmark and working parent get moved even if --keep is set (issue5682) |
@@ -631,7 +631,7 b' Test collapsing changes that add then re' | |||||
631 | $ hg book foo |
|
631 | $ hg book foo | |
632 | $ hg rebase -d 0 -r "1::2" --collapse -m collapsed |
|
632 | $ hg rebase -d 0 -r "1::2" --collapse -m collapsed | |
633 | rebasing 1:6d8d9f24eec3 "a" |
|
633 | rebasing 1:6d8d9f24eec3 "a" | |
634 |
rebasing 2:1cc73eca5ecc tip |
|
634 | rebasing 2:1cc73eca5ecc foo tip "b" | |
635 | saved backup bundle to $TESTTMP/collapseaddremove/.hg/strip-backup/6d8d9f24eec3-77d3b6e2-rebase.hg |
|
635 | saved backup bundle to $TESTTMP/collapseaddremove/.hg/strip-backup/6d8d9f24eec3-77d3b6e2-rebase.hg | |
636 | $ hg log -G --template "{rev}: '{desc}' {bookmarks}" |
|
636 | $ hg log -G --template "{rev}: '{desc}' {bookmarks}" | |
637 | @ 1: 'collapsed' foo |
|
637 | @ 1: 'collapsed' foo |
@@ -82,12 +82,12 b' still introduced by an ancestor of chang' | |||||
82 | "BOOK-D", and "BOOK-E" include changes introduced by "C". |
|
82 | "BOOK-D", and "BOOK-E" include changes introduced by "C". | |
83 |
|
83 | |||
84 | $ hg rebase -s 2 -d E |
|
84 | $ hg rebase -s 2 -d E | |
85 |
rebasing 2:dc0947a82db8 C |
|
85 | rebasing 2:dc0947a82db8 BOOK-C C "C" | |
86 | rebasing 3:e7b3f00ed42e BOOK-D "D" |
|
86 | rebasing 3:e7b3f00ed42e BOOK-D "D" | |
87 | note: not rebasing 3:e7b3f00ed42e BOOK-D "D", its destination already has all its changes |
|
87 | note: not rebasing 3:e7b3f00ed42e BOOK-D "D", its destination already has all its changes | |
88 | rebasing 4:69a34c08022a BOOK-E "E" |
|
88 | rebasing 4:69a34c08022a BOOK-E "E" | |
89 | note: not rebasing 4:69a34c08022a BOOK-E "E", its destination already has all its changes |
|
89 | note: not rebasing 4:69a34c08022a BOOK-E "E", its destination already has all its changes | |
90 |
rebasing 5:6b2aeab91270 F |
|
90 | rebasing 5:6b2aeab91270 BOOK-F F "F" | |
91 | saved backup bundle to $TESTTMP/non-merge/.hg/strip-backup/dc0947a82db8-52bb4973-rebase.hg |
|
91 | saved backup bundle to $TESTTMP/non-merge/.hg/strip-backup/dc0947a82db8-52bb4973-rebase.hg | |
92 | $ hg log -G -T '{rev} {desc} {bookmarks}' |
|
92 | $ hg log -G -T '{rev} {desc} {bookmarks}' | |
93 | o 5 F BOOK-F |
|
93 | o 5 F BOOK-F | |
@@ -143,8 +143,8 b' assumed branch name change.' | |||||
143 | note: not rebasing 2:dc0947a82db8 BOOK-C "C", its destination already has all its changes |
|
143 | note: not rebasing 2:dc0947a82db8 BOOK-C "C", its destination already has all its changes | |
144 | rebasing 3:b18e25de2cf5 BOOK-D "D" |
|
144 | rebasing 3:b18e25de2cf5 BOOK-D "D" | |
145 | note: not rebasing 3:b18e25de2cf5 BOOK-D "D", its destination already has all its changes |
|
145 | note: not rebasing 3:b18e25de2cf5 BOOK-D "D", its destination already has all its changes | |
146 |
rebasing 4:86a1f6686812 E |
|
146 | rebasing 4:86a1f6686812 BOOK-E E "E" | |
147 |
note: not rebasing 4:86a1f6686812 E |
|
147 | note: not rebasing 4:86a1f6686812 BOOK-E E "E", its destination already has all its changes | |
148 | saved backup bundle to $TESTTMP/merge1/.hg/strip-backup/b18e25de2cf5-1fd0a4ba-rebase.hg |
|
148 | saved backup bundle to $TESTTMP/merge1/.hg/strip-backup/b18e25de2cf5-1fd0a4ba-rebase.hg | |
149 | $ hg update null -q |
|
149 | $ hg update null -q | |
150 |
|
150 | |||
@@ -191,11 +191,11 b' Part of ancestors of a merge become empt' | |||||
191 | $ hg rebase -r '(A::)-(B::)-A' -d H |
|
191 | $ hg rebase -r '(A::)-(B::)-A' -d H | |
192 | rebasing 2:dc0947a82db8 BOOK-C "C" |
|
192 | rebasing 2:dc0947a82db8 BOOK-C "C" | |
193 | note: not rebasing 2:dc0947a82db8 BOOK-C "C", its destination already has all its changes |
|
193 | note: not rebasing 2:dc0947a82db8 BOOK-C "C", its destination already has all its changes | |
194 |
rebasing 3:b18e25de2cf5 D |
|
194 | rebasing 3:b18e25de2cf5 BOOK-D D "D" | |
195 |
rebasing 4:03ca77807e91 E |
|
195 | rebasing 4:03ca77807e91 BOOK-E E "E" | |
196 | rebasing 5:ad6717a6a58e BOOK-F "F" |
|
196 | rebasing 5:ad6717a6a58e BOOK-F "F" | |
197 | note: not rebasing 5:ad6717a6a58e BOOK-F "F", its destination already has all its changes |
|
197 | note: not rebasing 5:ad6717a6a58e BOOK-F "F", its destination already has all its changes | |
198 |
rebasing 6:c58e8bdac1f4 G |
|
198 | rebasing 6:c58e8bdac1f4 BOOK-G G "G" | |
199 | saved backup bundle to $TESTTMP/merge2/.hg/strip-backup/b18e25de2cf5-2d487005-rebase.hg |
|
199 | saved backup bundle to $TESTTMP/merge2/.hg/strip-backup/b18e25de2cf5-2d487005-rebase.hg | |
200 |
|
200 | |||
201 | $ hg log -G -T '{rev} {desc} {bookmarks}' |
|
201 | $ hg log -G -T '{rev} {desc} {bookmarks}' |
@@ -1707,7 +1707,7 b' parent gets moved:' | |||||
1707 | $ hg bookmark book -i |
|
1707 | $ hg bookmark book -i | |
1708 | $ hg rebase -r B+D1 -d E |
|
1708 | $ hg rebase -r B+D1 -d E | |
1709 | rebasing 1:112478962961 B "B" |
|
1709 | rebasing 1:112478962961 B "B" | |
1710 |
note: not rebasing 5:15ecf15e0114 D1 tip |
|
1710 | note: not rebasing 5:15ecf15e0114 book D1 tip "D1", already in destination as 2:0807738e0be9 D2 "D2" | |
1711 | 1 new orphan changesets |
|
1711 | 1 new orphan changesets | |
1712 | $ hg log -G -T '{desc} {bookmarks}' |
|
1712 | $ hg log -G -T '{desc} {bookmarks}' | |
1713 | @ B book |
|
1713 | @ B book |
@@ -100,3 +100,24 b' command-templates.oneline-summary.rebase' | |||||
100 | rebasing override: 7 |
|
100 | rebasing override: 7 | |
101 | note: not rebasing override: 7, its destination already has all its changes |
|
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 |
|
102 | dry-run rebase completed successfully; run without -n/--dry-run to perform this rebase | |
|
103 | ||||
|
104 | ||||
|
105 | check namespaces and coloring (labels) | |||
|
106 | ||||
|
107 | $ hg tag -l -r 7 my-tag | |||
|
108 | $ hg rebase -r 7 -d 8 -n | |||
|
109 | starting dry-run rebase; repository will not be changed | |||
|
110 | rebasing 7:f48cd65c6dc3 my-tag "Added b" | |||
|
111 | note: not rebasing 7:f48cd65c6dc3 my-tag "Added b", its destination already has all its changes | |||
|
112 | dry-run rebase completed successfully; run without -n/--dry-run to perform this rebase | |||
|
113 | $ hg bookmark -r 7 my-bookmark | |||
|
114 | $ hg rebase -r 7 -d 8 -n | |||
|
115 | starting dry-run rebase; repository will not be changed | |||
|
116 | rebasing 7:f48cd65c6dc3 my-bookmark my-tag "Added b" | |||
|
117 | note: not rebasing 7:f48cd65c6dc3 my-bookmark my-tag "Added b", its destination already has all its changes | |||
|
118 | dry-run rebase completed successfully; run without -n/--dry-run to perform this rebase | |||
|
119 | $ hg rebase -r 7 -d 8 -n --color=debug | |||
|
120 | [ ui.status|starting dry-run rebase; repository will not be changed] | |||
|
121 | [ ui.status|rebasing [oneline-summary.changeset|7:f48cd65c6dc3] [oneline-summary.bookmarks|my-bookmark] [oneline-summary.tags|my-tag] "[oneline-summary.desc|Added b]"] | |||
|
122 | [ ui.warning|note: not rebasing [oneline-summary.changeset|7:f48cd65c6dc3] [oneline-summary.bookmarks|my-bookmark] [oneline-summary.tags|my-tag] "[oneline-summary.desc|Added b]", its destination already has all its changes] | |||
|
123 | [ ui.status|dry-run rebase completed successfully; run without -n/--dry-run to perform this rebase] |
@@ -229,7 +229,7 b'' | |||||
229 | .. flaky, the core the test is checked when checking the cache dir, so |
|
229 | .. flaky, the core the test is checked when checking the cache dir, so | |
230 | .. hopefully this flakyness is not hiding any actual bug. |
|
230 | .. hopefully this flakyness is not hiding any actual bug. | |
231 | $ hg rebase -s temporary -d foo |
|
231 | $ hg rebase -s temporary -d foo | |
232 |
rebasing 3:d9cf06e3b5b6 tip |
|
232 | rebasing 3:d9cf06e3b5b6 temporary tip "b" | |
233 | saved backup bundle to $TESTTMP/shallow/.hg/strip-backup/d9cf06e3b5b6-e5c3dc63-rebase.hg |
|
233 | saved backup bundle to $TESTTMP/shallow/.hg/strip-backup/d9cf06e3b5b6-e5c3dc63-rebase.hg | |
234 | ? files fetched over ? fetches - (? misses, 0.00% hit ratio) over *s (glob) |
|
234 | ? files fetched over ? fetches - (? misses, 0.00% hit ratio) over *s (glob) | |
235 | $ find $CACHEDIR -type f | sort |
|
235 | $ find $CACHEDIR -type f | sort |
General Comments 0
You need to be logged in to leave comments.
Login now