Show More
@@ -869,6 +869,8 b' def bookmark(ui, repo, mark=None, rev=No' | |||||
869 | marks[mark] = tgt |
|
869 | marks[mark] = tgt | |
870 | if not inactive and cur == marks[mark]: |
|
870 | if not inactive and cur == marks[mark]: | |
871 | bookmarks.setcurrent(repo, mark) |
|
871 | bookmarks.setcurrent(repo, mark) | |
|
872 | elif cur != tgt and mark == repo._bookmarkcurrent: | |||
|
873 | bookmarks.setcurrent(repo, None) | |||
872 | marks.write() |
|
874 | marks.write() | |
873 |
|
875 | |||
874 | # Same message whether trying to deactivate the current bookmark (-i |
|
876 | # Same message whether trying to deactivate the current bookmark (-i |
@@ -280,7 +280,15 b' incompatible options' | |||||
280 | force bookmark with existing name |
|
280 | force bookmark with existing name | |
281 |
|
281 | |||
282 | $ hg bookmark -f X2 |
|
282 | $ hg bookmark -f X2 | |
|
283 | ||||
|
284 | force bookmark back to where it was, should deactivate it | |||
|
285 | ||||
283 | $ hg bookmark -fr1 X2 |
|
286 | $ hg bookmark -fr1 X2 | |
|
287 | $ hg bookmarks | |||
|
288 | X2 1:925d80f479bb | |||
|
289 | Y 2:db815d6d32e6 | |||
|
290 | Z 0:f7b1eb17ad24 | |||
|
291 | x y 2:db815d6d32e6 | |||
284 |
|
292 | |||
285 | forward bookmark to descendant without --force |
|
293 | forward bookmark to descendant without --force | |
286 |
|
294 | |||
@@ -360,7 +368,7 b' test rollback' | |||||
360 | $ hg bookmarks |
|
368 | $ hg bookmarks | |
361 | X2 1:925d80f479bb |
|
369 | X2 1:925d80f479bb | |
362 | Y 2:db815d6d32e6 |
|
370 | Y 2:db815d6d32e6 | |
363 |
|
|
371 | Z 2:db815d6d32e6 | |
364 | x y 2:db815d6d32e6 |
|
372 | x y 2:db815d6d32e6 | |
365 |
|
373 | |||
366 | activate bookmark on working dir parent without --force |
|
374 | activate bookmark on working dir parent without --force |
General Comments 0
You need to be logged in to leave comments.
Login now