Mercurial > evolve
comparison tests/test-topic-prev-next.t @ 5909:3571685e2aa2 stable
next: remove duplicated targets when updating from an unstable changeset
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Sun, 02 May 2021 22:06:11 +0800 |
parents | 21a8f0336f26 |
children | 9da0114a8a02 |
comparison
equal
deleted
inserted
replaced
5907:355bd0f7354b | 5909:3571685e2aa2 |
---|---|
131 o 1 [A] A1 | 131 o 1 [A] A1 |
132 | | 132 | |
133 o 0 [] root | 133 o 0 [] root |
134 | 134 |
135 | 135 |
136 Simply walking on unstable changesets should work as expected | |
137 | |
138 $ hg up 'desc("B2")' | |
139 switching to topic B | |
140 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
141 $ hg prev | |
142 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
143 [s1] B1 | |
144 $ hg next | |
145 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
146 [s2] B2 | |
147 | |
136 B1 shouldn't be considered a target, orphan or not | 148 B1 shouldn't be considered a target, orphan or not |
137 | 149 |
150 $ hg up 'desc("A2")' | |
151 switching to topic A | |
152 1 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
138 $ hg next | 153 $ hg next |
139 move:[s3] A3 | 154 move:[s3] A3 |
140 atop:[s2] A2 | 155 atop:[s2] A2 |
141 working directory is now at 2b67b6a6cae1 | 156 working directory is now at 2b67b6a6cae1 |
142 | 157 |