Show More
@@ -208,7 +208,8 b' def rebase(ui, repo, **opts):' | |||||
208 | ui.warn(_("warning: new changesets detected " |
|
208 | ui.warn(_("warning: new changesets detected " | |
209 | "on source branch, not stripping\n")) |
|
209 | "on source branch, not stripping\n")) | |
210 | else: |
|
210 | else: | |
211 | repair.strip(ui, repo, repo[min(rebased)].node(), "strip") |
|
211 | # backup the old csets by default | |
|
212 | repair.strip(ui, repo, repo[min(rebased)].node(), "all") | |||
212 |
|
213 | |||
213 | clearstatus(repo) |
|
214 | clearstatus(repo) | |
214 | ui.status(_("rebase completed\n")) |
|
215 | ui.status(_("rebase completed\n")) | |
@@ -433,7 +434,8 b' def abort(repo, originalwd, target, stat' | |||||
433 | rebased = filter(lambda x: x > -1, state.values()) |
|
434 | rebased = filter(lambda x: x > -1, state.values()) | |
434 | if rebased: |
|
435 | if rebased: | |
435 | strippoint = min(rebased) |
|
436 | strippoint = min(rebased) | |
436 | repair.strip(repo.ui, repo, repo[strippoint].node(), "strip") |
|
437 | # no backup of rebased cset versions needed | |
|
438 | repair.strip(repo.ui, repo, repo[strippoint].node()) | |||
437 | clearstatus(repo) |
|
439 | clearstatus(repo) | |
438 | repo.ui.status(_('rebase aborted\n')) |
|
440 | repo.ui.status(_('rebase aborted\n')) | |
439 |
|
441 |
@@ -9,6 +9,7 b' adding d' | |||||
9 | * two 3:2ae46b1d99a7 |
|
9 | * two 3:2ae46b1d99a7 | |
10 | one 1:925d80f479bb |
|
10 | one 1:925d80f479bb | |
11 | % rebase |
|
11 | % rebase | |
|
12 | saved backup bundle to | |||
12 | adding branch |
|
13 | adding branch | |
13 | adding changesets |
|
14 | adding changesets | |
14 | adding manifests |
|
15 | adding manifests |
@@ -18,6 +18,7 b' abort: fix unresolved conflicts with hg ' | |||||
18 | merging common |
|
18 | merging common | |
19 |
|
19 | |||
20 | % Abort |
|
20 | % Abort | |
|
21 | saved backup bundle to | |||
21 | rebase aborted |
|
22 | rebase aborted | |
22 | @ 4: L2 |
|
23 | @ 4: L2 | |
23 | | |
|
24 | | |
@@ -32,6 +32,7 b' 2:65a26a4d12f6 B branch: branch1' | |||||
32 | 0:1994f17a630e A branch: |
|
32 | 0:1994f17a630e A branch: | |
33 |
|
33 | |||
34 | % Rebase part of branch2 (5-6) onto branch3 (8) |
|
34 | % Rebase part of branch2 (5-6) onto branch3 (8) | |
|
35 | saved backup bundle to | |||
35 | adding branch |
|
36 | adding branch | |
36 | adding changesets |
|
37 | adding changesets | |
37 | adding manifests |
|
38 | adding manifests | |
@@ -89,6 +90,7 b' o 7:33c9da881988 Branch3 branch: branch' | |||||
89 | |/ |
|
90 | |/ | |
90 | o 0:1994f17a630e A branch: |
|
91 | o 0:1994f17a630e A branch: | |
91 |
|
92 | |||
|
93 | saved backup bundle to | |||
92 | adding branch |
|
94 | adding branch | |
93 | adding changesets |
|
95 | adding changesets | |
94 | adding manifests |
|
96 | adding manifests | |
@@ -147,6 +149,7 b' o 7:33c9da881988 Branch3 branch: branch' | |||||
147 | |/ |
|
149 | |/ | |
148 | o 0:1994f17a630e A branch: |
|
150 | o 0:1994f17a630e A branch: | |
149 |
|
151 | |||
|
152 | saved backup bundle to | |||
150 | adding branch |
|
153 | adding branch | |
151 | adding changesets |
|
154 | adding changesets | |
152 | adding manifests |
|
155 | adding manifests |
@@ -55,6 +55,7 b' abort: fix unresolved conflicts with hg ' | |||||
55 | merging A |
|
55 | merging A | |
56 |
|
56 | |||
57 | % - Solve the conflict and go on |
|
57 | % - Solve the conflict and go on | |
|
58 | saved backup bundle to | |||
58 | adding branch |
|
59 | adding branch | |
59 | adding changesets |
|
60 | adding changesets | |
60 | adding manifests |
|
61 | adding manifests |
@@ -16,6 +16,7 b' o 0: A' | |||||
16 |
|
16 | |||
17 | % Rebasing B onto H |
|
17 | % Rebasing B onto H | |
18 | 3 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
18 | 3 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
|
19 | saved backup bundle to | |||
19 | adding branch |
|
20 | adding branch | |
20 | adding changesets |
|
21 | adding changesets | |
21 | adding manifests |
|
22 | adding manifests | |
@@ -45,6 +46,7 b' F' | |||||
45 | H |
|
46 | H | |
46 |
|
47 | |||
47 | % Rebasing G onto H |
|
48 | % Rebasing G onto H | |
|
49 | saved backup bundle to | |||
48 | adding branch |
|
50 | adding branch | |
49 | adding changesets |
|
51 | adding changesets | |
50 | adding manifests |
|
52 | adding manifests | |
@@ -93,6 +95,7 b' o 0: A' | |||||
93 | abort: unable to collapse, there is more than one external parent |
|
95 | abort: unable to collapse, there is more than one external parent | |
94 |
|
96 | |||
95 | % Rebase and collapse - E onto H |
|
97 | % Rebase and collapse - E onto H | |
|
98 | saved backup bundle to | |||
96 | adding branch |
|
99 | adding branch | |
97 | adding changesets |
|
100 | adding changesets | |
98 | adding manifests |
|
101 | adding manifests | |
@@ -142,6 +145,7 b' o 0: A' | |||||
142 |
|
145 | |||
143 | % Rebase and collapse - E onto I |
|
146 | % Rebase and collapse - E onto I | |
144 | merging E |
|
147 | merging E | |
|
148 | saved backup bundle to | |||
145 | adding branch |
|
149 | adding branch | |
146 | adding changesets |
|
150 | adding changesets | |
147 | adding manifests |
|
151 | adding manifests | |
@@ -187,6 +191,7 b' o 0: A' | |||||
187 |
|
191 | |||
188 |
|
192 | |||
189 | % Rebase and collapse - B onto F |
|
193 | % Rebase and collapse - B onto F | |
|
194 | saved backup bundle to | |||
190 | adding branch |
|
195 | adding branch | |
191 | adding changesets |
|
196 | adding changesets | |
192 | adding manifests |
|
197 | adding manifests |
@@ -26,6 +26,7 b' abort: fix unresolved conflicts with hg ' | |||||
26 | abort: unresolved merge conflicts (see hg resolve) |
|
26 | abort: unresolved merge conflicts (see hg resolve) | |
27 |
|
27 | |||
28 | % Conclude rebase |
|
28 | % Conclude rebase | |
|
29 | saved backup bundle to | |||
29 | adding branch |
|
30 | adding branch | |
30 | adding changesets |
|
31 | adding changesets | |
31 | adding manifests |
|
32 | adding manifests |
@@ -9,6 +9,7 b'' | |||||
9 | o 0: A |
|
9 | o 0: A | |
10 |
|
10 | |||
11 | % Rebasing D onto E detaching from C |
|
11 | % Rebasing D onto E detaching from C | |
|
12 | saved backup bundle to | |||
12 | adding branch |
|
13 | adding branch | |
13 | adding changesets |
|
14 | adding changesets | |
14 | adding manifests |
|
15 | adding manifests | |
@@ -41,6 +42,7 b' E' | |||||
41 | o 0: A |
|
42 | o 0: A | |
42 |
|
43 | |||
43 | % Rebasing C onto E detaching from B |
|
44 | % Rebasing C onto E detaching from B | |
|
45 | saved backup bundle to | |||
44 | adding branch |
|
46 | adding branch | |
45 | adding changesets |
|
47 | adding changesets | |
46 | adding manifests |
|
48 | adding manifests | |
@@ -74,6 +76,7 b' E' | |||||
74 | o 0: A |
|
76 | o 0: A | |
75 |
|
77 | |||
76 | % Rebasing B onto E using detach (same as not using it) |
|
78 | % Rebasing B onto E using detach (same as not using it) | |
|
79 | saved backup bundle to | |||
77 | adding branch |
|
80 | adding branch | |
78 | adding changesets |
|
81 | adding changesets | |
79 | adding manifests |
|
82 | adding manifests | |
@@ -108,6 +111,7 b' E' | |||||
108 | o 0: A |
|
111 | o 0: A | |
109 |
|
112 | |||
110 | % Rebasing C onto E detaching from B and collapsing |
|
113 | % Rebasing C onto E detaching from B and collapsing | |
|
114 | saved backup bundle to | |||
111 | adding branch |
|
115 | adding branch | |
112 | adding changesets |
|
116 | adding changesets | |
113 | adding manifests |
|
117 | adding manifests |
@@ -13,6 +13,7 b' o 0:c1' | |||||
13 |
|
13 | |||
14 | % Rebase with no arguments - single revision in source branch |
|
14 | % Rebase with no arguments - single revision in source branch | |
15 | 1 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
15 | 1 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
|
16 | saved backup bundle to | |||
16 | adding branch |
|
17 | adding branch | |
17 | adding changesets |
|
18 | adding changesets | |
18 | adding manifests |
|
19 | adding manifests | |
@@ -44,6 +45,7 b' o 0:c1' | |||||
44 |
|
45 | |||
45 | % Rebase with no arguments - single revision in target branch |
|
46 | % Rebase with no arguments - single revision in target branch | |
46 | 2 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
47 | 2 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
48 | saved backup bundle to | |||
47 | adding branch |
|
49 | adding branch | |
48 | adding changesets |
|
50 | adding changesets | |
49 | adding manifests |
|
51 | adding manifests |
@@ -6,6 +6,7 b' applying p1.patch' | |||||
6 |
|
6 | |||
7 | % Rebase |
|
7 | % Rebase | |
8 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
|
8 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
9 | saved backup bundle to | |||
9 | adding branch |
|
10 | adding branch | |
10 | adding changesets |
|
11 | adding changesets | |
11 | adding manifests |
|
12 | adding manifests |
@@ -27,6 +27,7 b' abort: fix unresolved conflicts with hg ' | |||||
27 | merging f |
|
27 | merging f | |
28 |
|
28 | |||
29 | % Fix the 2nd conflict |
|
29 | % Fix the 2nd conflict | |
|
30 | saved backup bundle to | |||
30 | adding branch |
|
31 | adding branch | |
31 | adding changesets |
|
32 | adding changesets | |
32 | adding manifests |
|
33 | adding manifests |
@@ -267,6 +267,7 b' nothing to rebase' | |||||
267 |
|
267 | |||
268 | % Rebase with no arguments (from 3 onto 7) |
|
268 | % Rebase with no arguments (from 3 onto 7) | |
269 | 3 files updated, 0 files merged, 2 files removed, 0 files unresolved |
|
269 | 3 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
|
270 | saved backup bundle to | |||
270 | adding branch |
|
271 | adding branch | |
271 | adding changesets |
|
272 | adding changesets | |
272 | adding manifests |
|
273 | adding manifests | |
@@ -278,6 +279,7 b' no rollback information available' | |||||
278 |
|
279 | |||
279 | % Rebase with base == '.' => same as no arguments (from 3 onto 7) |
|
280 | % Rebase with base == '.' => same as no arguments (from 3 onto 7) | |
280 | 3 files updated, 0 files merged, 3 files removed, 0 files unresolved |
|
281 | 3 files updated, 0 files merged, 3 files removed, 0 files unresolved | |
|
282 | saved backup bundle to | |||
281 | adding branch |
|
283 | adding branch | |
282 | adding changesets |
|
284 | adding changesets | |
283 | adding manifests |
|
285 | adding manifests | |
@@ -287,6 +289,7 b' rebase completed' | |||||
287 |
|
289 | |||
288 | % Rebase with dest == default => same as no arguments (from 3 onto 7) |
|
290 | % Rebase with dest == default => same as no arguments (from 3 onto 7) | |
289 | 3 files updated, 0 files merged, 3 files removed, 0 files unresolved |
|
291 | 3 files updated, 0 files merged, 3 files removed, 0 files unresolved | |
|
292 | saved backup bundle to | |||
290 | adding branch |
|
293 | adding branch | |
291 | adding changesets |
|
294 | adding changesets | |
292 | adding manifests |
|
295 | adding manifests | |
@@ -295,6 +298,7 b' added 5 changesets with 5 changes to 5 f' | |||||
295 | rebase completed |
|
298 | rebase completed | |
296 |
|
299 | |||
297 | % Specify only source (from 4 onto 7) |
|
300 | % Specify only source (from 4 onto 7) | |
|
301 | saved backup bundle to | |||
298 | adding branch |
|
302 | adding branch | |
299 | adding changesets |
|
303 | adding changesets | |
300 | adding manifests |
|
304 | adding manifests | |
@@ -304,6 +308,7 b' rebase completed' | |||||
304 |
|
308 | |||
305 | % Specify only dest (from 3 onto 6) |
|
309 | % Specify only dest (from 3 onto 6) | |
306 | 3 files updated, 0 files merged, 3 files removed, 0 files unresolved |
|
310 | 3 files updated, 0 files merged, 3 files removed, 0 files unresolved | |
|
311 | saved backup bundle to | |||
307 | adding branch |
|
312 | adding branch | |
308 | adding changesets |
|
313 | adding changesets | |
309 | adding manifests |
|
314 | adding manifests | |
@@ -312,6 +317,7 b' added 5 changesets with 5 changes to 5 f' | |||||
312 | rebase completed |
|
317 | rebase completed | |
313 |
|
318 | |||
314 | % Specify only base (from 3 onto 7) |
|
319 | % Specify only base (from 3 onto 7) | |
|
320 | saved backup bundle to | |||
315 | adding branch |
|
321 | adding branch | |
316 | adding changesets |
|
322 | adding changesets | |
317 | adding manifests |
|
323 | adding manifests | |
@@ -320,6 +326,7 b' added 5 changesets with 5 changes to 5 f' | |||||
320 | rebase completed |
|
326 | rebase completed | |
321 |
|
327 | |||
322 | % Specify source and dest (from 4 onto 6) |
|
328 | % Specify source and dest (from 4 onto 6) | |
|
329 | saved backup bundle to | |||
323 | adding branch |
|
330 | adding branch | |
324 | adding changesets |
|
331 | adding changesets | |
325 | adding manifests |
|
332 | adding manifests | |
@@ -328,6 +335,7 b' added 4 changesets with 4 changes to 4 f' | |||||
328 | rebase completed |
|
335 | rebase completed | |
329 |
|
336 | |||
330 | % Specify base and dest (from 3 onto 6) |
|
337 | % Specify base and dest (from 3 onto 6) | |
|
338 | saved backup bundle to | |||
331 | adding branch |
|
339 | adding branch | |
332 | adding changesets |
|
340 | adding changesets | |
333 | adding manifests |
|
341 | adding manifests |
@@ -10,6 +10,7 b' adding changesets' | |||||
10 | adding manifests |
|
10 | adding manifests | |
11 | adding file changes |
|
11 | adding file changes | |
12 | added 1 changesets with 1 changes to 1 files (+1 heads) |
|
12 | added 1 changesets with 1 changes to 1 files (+1 heads) | |
|
13 | saved backup bundle to | |||
13 | adding branch |
|
14 | adding branch | |
14 | adding changesets |
|
15 | adding changesets | |
15 | adding manifests |
|
16 | adding manifests |
@@ -12,6 +12,7 b' o 0: A' | |||||
12 |
|
12 | |||
13 | % Rebasing |
|
13 | % Rebasing | |
14 | % B onto F - simple rebase |
|
14 | % B onto F - simple rebase | |
|
15 | saved backup bundle to | |||
15 | adding branch |
|
16 | adding branch | |
16 | adding changesets |
|
17 | adding changesets | |
17 | adding manifests |
|
18 | adding manifests | |
@@ -31,6 +32,7 b' o | 2: D' | |||||
31 | o 0: A |
|
32 | o 0: A | |
32 |
|
33 | |||
33 | % B onto D - intermediate point |
|
34 | % B onto D - intermediate point | |
|
35 | saved backup bundle to | |||
34 | adding branch |
|
36 | adding branch | |
35 | adding changesets |
|
37 | adding changesets | |
36 | adding manifests |
|
38 | adding manifests | |
@@ -50,6 +52,7 b' o | 2: D' | |||||
50 | o 0: A |
|
52 | o 0: A | |
51 |
|
53 | |||
52 | % C onto F - skip of E |
|
54 | % C onto F - skip of E | |
|
55 | saved backup bundle to | |||
53 | adding branch |
|
56 | adding branch | |
54 | adding changesets |
|
57 | adding changesets | |
55 | adding manifests |
|
58 | adding manifests | |
@@ -67,6 +70,7 b' o 2: D' | |||||
67 | o 0: A |
|
70 | o 0: A | |
68 |
|
71 | |||
69 | % D onto C - rebase of a branching point (skip E) |
|
72 | % D onto C - rebase of a branching point (skip E) | |
|
73 | saved backup bundle to | |||
70 | adding branch |
|
74 | adding branch | |
71 | adding changesets |
|
75 | adding changesets | |
72 | adding manifests |
|
76 | adding manifests | |
@@ -84,6 +88,7 b' o 2: C' | |||||
84 | o 0: A |
|
88 | o 0: A | |
85 |
|
89 | |||
86 | % E onto F - merged revision having a parent in ancestors of target |
|
90 | % E onto F - merged revision having a parent in ancestors of target | |
|
91 | saved backup bundle to | |||
87 | adding branch |
|
92 | adding branch | |
88 | adding changesets |
|
93 | adding changesets | |
89 | adding manifests |
|
94 | adding manifests | |
@@ -103,6 +108,7 b' o | 2: C' | |||||
103 | o 0: A |
|
108 | o 0: A | |
104 |
|
109 | |||
105 | % D onto B - E maintains C as parent |
|
110 | % D onto B - E maintains C as parent | |
|
111 | saved backup bundle to | |||
106 | adding branch |
|
112 | adding branch | |
107 | adding changesets |
|
113 | adding changesets | |
108 | adding manifests |
|
114 | adding manifests |
General Comments 0
You need to be logged in to leave comments.
Login now