Mercurial > hg
view tests/test-rebase-cache.out @ 11715:4f9dfb54c8b5 stable
qpush --move: move the right patch even with comment lines
88fc876a4833 caused that we find the index of the moving patch in self.series
but look it up in self.full_series. The difference between these is that
full_series also contains comment lines, and we thus moved the wrong patch.
Use back self.full_series to find the moving patch, but take care of striping
the patch guard markers before comparing the patch name. Test cases have been
added for comments and empty lines in self.full_series, and for the case of
guarded patches.
Original patch contributed by Mads Kiilerich <mads@kiilerich.com>
author | Gilles Moris <gilles.moris@free.fr> |
---|---|
date | Sat, 10 Jul 2010 21:23:00 +0200 |
parents | 7a9cf012dddc |
children |
line wrap: on
line source
@ 8:c11d5b3e9c00 F branch: branch3 | o 7:33c9da881988 Branch3 branch: branch3 | | o 6:0e4064ab11a3 E branch: branch2 | | | o 5:5ac035cb5d8f D branch: branch2 | | | | o 4:8e66061486ee C branch: branch2 | | | +---o 3:99567862abbe Branch2 branch: branch2 | | | o 2:65a26a4d12f6 B branch: branch1 | | | o 1:0f3f3010ee16 Branch1 branch: branch1 |/ o 0:1994f17a630e A branch: % Branches branch3 8:c11d5b3e9c00 branch2 6:0e4064ab11a3 branch1 2:65a26a4d12f6 (inactive) default 0:1994f17a630e (inactive) % Heads 8:c11d5b3e9c00 F branch: branch3 6:0e4064ab11a3 E branch: branch2 4:8e66061486ee C branch: branch2 2:65a26a4d12f6 B branch: branch1 0:1994f17a630e A branch: % Rebase part of branch2 (5-6) onto branch3 (8) saved backup bundle to % Branches branch3 8:c9bfa9beb84e branch2 4:8e66061486ee branch1 2:65a26a4d12f6 default 0:1994f17a630e (inactive) % Heads 8:c9bfa9beb84e E branch: branch3 4:8e66061486ee C branch: branch2 2:65a26a4d12f6 B branch: branch1 0:1994f17a630e A branch: @ 8:c9bfa9beb84e E branch: branch3 | o 7:bf9037384081 D branch: branch3 | o 6:c11d5b3e9c00 F branch: branch3 | o 5:33c9da881988 Branch3 branch: branch3 | | o 4:8e66061486ee C branch: branch2 | | | o 3:99567862abbe Branch2 branch: branch2 |/ | o 2:65a26a4d12f6 B branch: branch1 | | | o 1:0f3f3010ee16 Branch1 branch: branch1 |/ o 0:1994f17a630e A branch: % Rebase head of branch3 (8) onto branch2 (6) @ 8:c11d5b3e9c00 F branch: branch3 | o 7:33c9da881988 Branch3 branch: branch3 | | o 6:0e4064ab11a3 E branch: branch2 | | | o 5:5ac035cb5d8f D branch: branch2 | | | | o 4:8e66061486ee C branch: branch2 | | | +---o 3:99567862abbe Branch2 branch: branch2 | | | o 2:65a26a4d12f6 B branch: branch1 | | | o 1:0f3f3010ee16 Branch1 branch: branch1 |/ o 0:1994f17a630e A branch: saved backup bundle to % Branches branch2 8:b44d3024f247 branch3 7:33c9da881988 branch1 2:65a26a4d12f6 (inactive) default 0:1994f17a630e (inactive) % Heads 8:b44d3024f247 F branch: branch2 7:33c9da881988 Branch3 branch: branch3 4:8e66061486ee C branch: branch2 2:65a26a4d12f6 B branch: branch1 0:1994f17a630e A branch: @ 8:b44d3024f247 F branch: branch2 | | o 7:33c9da881988 Branch3 branch: branch3 | | o | 6:0e4064ab11a3 E branch: branch2 | | o | 5:5ac035cb5d8f D branch: branch2 | | | | o 4:8e66061486ee C branch: branch2 | | | | | o 3:99567862abbe Branch2 branch: branch2 | |/ o | 2:65a26a4d12f6 B branch: branch1 | | o | 1:0f3f3010ee16 Branch1 branch: branch1 |/ o 0:1994f17a630e A branch: % Rebase entire branch3 (7-8) onto branch2 (6) @ 8:c11d5b3e9c00 F branch: branch3 | o 7:33c9da881988 Branch3 branch: branch3 | | o 6:0e4064ab11a3 E branch: branch2 | | | o 5:5ac035cb5d8f D branch: branch2 | | | | o 4:8e66061486ee C branch: branch2 | | | +---o 3:99567862abbe Branch2 branch: branch2 | | | o 2:65a26a4d12f6 B branch: branch1 | | | o 1:0f3f3010ee16 Branch1 branch: branch1 |/ o 0:1994f17a630e A branch: saved backup bundle to % Branches branch2 7:b44d3024f247 branch1 2:65a26a4d12f6 (inactive) default 0:1994f17a630e (inactive) % Heads 7:b44d3024f247 F branch: branch2 4:8e66061486ee C branch: branch2 2:65a26a4d12f6 B branch: branch1 0:1994f17a630e A branch: @ 7:b44d3024f247 F branch: branch2 | o 6:0e4064ab11a3 E branch: branch2 | o 5:5ac035cb5d8f D branch: branch2 | | o 4:8e66061486ee C branch: branch2 | | | o 3:99567862abbe Branch2 branch: branch2 | | o | 2:65a26a4d12f6 B branch: branch1 | | o | 1:0f3f3010ee16 Branch1 branch: branch1 |/ o 0:1994f17a630e A branch: