##// END OF EJS Templates
strip: move bookmarks to nearest ancestor rather than '.'...
strip: move bookmarks to nearest ancestor rather than '.' If you've got this graph: 0-1-2 \ 3 and 3 is checked out, 2 is bookmarked with "broken", and you do "hg strip 2", the bookmark will move to 3, not 1. That's always struck me as a bug. This change makes bookmarks move to the tipmost ancestor of the stripped set rather than the currently-checked-out revision, which is what I always expected should happen.

File last commit:

r16868:eb88ed42 default
r17264:ec7b9bec stable
Show More
test-revlog-ancestry.py.out
15 lines | 193 B | text/plain | TextLexer
/ tests / test-revlog-ancestry.py.out
Ancestors of 5
4 2 0
Ancestors of 6 and 5
3 4 2 1 0
Ancestors of 5 and 4
4 2 0
Ancestors of 7, stop at 6
6
Descendants of 5
7 8
Descendants of 5 and 3
6 7 8
Descendants of 5 and 4
5 7 8