comparison tests/test-inhibit.t @ 1241:3625d006e81b

inhibit: Add -D option to the bookmark command The -D option for bookmark is similar to the -B option for strip. It deletes the bookmark and prunes the changes underneath it that are not reachable.
author Laurent Charignon <lcharignon@fb.com>
date Tue, 31 Mar 2015 14:17:46 -0700
parents e1347ce2f954
children 62229e7451f7
comparison
equal deleted inserted replaced
1240:e1347ce2f954 1241:3625d006e81b
259 | | 259 | |
260 | o 1:02bcbc3f6e56 add cB 260 | o 1:02bcbc3f6e56 add cB
261 |/ 261 |/
262 o 0:54ccbc537fc2 add cA 262 o 0:54ccbc537fc2 add cA
263 263
264 $ hg bookmark -d book1 264
265 $ hg prune --hidden 1:: 265 Removing a bookmark with bookmark -D should prune the changes underneath
266 3 changesets pruned 266 that are not reachable from another bookmark or head
267
268 $ hg bookmark -r 1 book2
269 $ hg bookmark -D book1
270 bookmark 'book1' deleted
271 1 changesets pruned
272 $ hg log -G
273 @ 9:55c73a90e4b4 add cJ
274 |
275 | o 7:18214586bf78 add cJ
276 |/
277 o 6:cf5c4f4554ce add cH
278 |
279 o 5:5419eb264a33 add cG
280 |
281 o 4:98065434e5c6 add cE
282 |
283 | o 1:02bcbc3f6e56 add cB
284 |/
285 o 0:54ccbc537fc2 add cA
286
287 $ hg bookmark -D book2
288 bookmark 'book2' deleted
289 1 changesets pruned
267 $ hg log -G 290 $ hg log -G
268 @ 9:55c73a90e4b4 add cJ 291 @ 9:55c73a90e4b4 add cJ
269 | 292 |
270 | o 7:18214586bf78 add cJ 293 | o 7:18214586bf78 add cJ
271 |/ 294 |/