Show More
@@ -965,7 +965,7 def addbookmarks(repo, tr, names, rev=No | |||||
965 | newact = mark |
|
965 | newact = mark | |
966 | if inactive and mark == repo._activebookmark: |
|
966 | if inactive and mark == repo._activebookmark: | |
967 | deactivate(repo) |
|
967 | deactivate(repo) | |
968 |
|
|
968 | continue | |
969 | tgt = cur |
|
969 | tgt = cur | |
970 | if rev: |
|
970 | if rev: | |
971 | ctx = scmutil.revsingle(repo, rev) |
|
971 | ctx = scmutil.revsingle(repo, rev) | |
@@ -976,6 +976,10 def addbookmarks(repo, tr, names, rev=No | |||||
976 | changes.append((bm, None)) |
|
976 | changes.append((bm, None)) | |
977 | changes.append((mark, tgt)) |
|
977 | changes.append((mark, tgt)) | |
978 |
|
978 | |||
|
979 | # nothing changed but for the one deactivated above | |||
|
980 | if not changes: | |||
|
981 | return | |||
|
982 | ||||
979 | if hiddenrev: |
|
983 | if hiddenrev: | |
980 | repo.ui.warn(_(b"bookmarking hidden changeset %s\n") % hiddenrev) |
|
984 | repo.ui.warn(_(b"bookmarking hidden changeset %s\n") % hiddenrev) | |
981 |
|
985 |
@@ -608,6 +608,17 activate bookmark on working dir parent | |||||
608 | $ hg bookmark --inactive Z |
|
608 | $ hg bookmark --inactive Z | |
609 | $ hg bookmark Z |
|
609 | $ hg bookmark Z | |
610 |
|
610 | |||
|
611 | deactivate current 'Z', but also add 'Y' | |||
|
612 | ||||
|
613 | $ hg bookmark -d Y | |||
|
614 | $ hg bookmark --inactive Z Y | |||
|
615 | $ hg bookmark -l | |||
|
616 | X2 1:925d80f479bb | |||
|
617 | Y 2:db815d6d32e6 | |||
|
618 | Z 2:db815d6d32e6 | |||
|
619 | x y 2:db815d6d32e6 | |||
|
620 | $ hg bookmark Z | |||
|
621 | ||||
611 | test clone |
|
622 | test clone | |
612 |
|
623 | |||
613 | $ hg bookmark -r 2 -i @ |
|
624 | $ hg bookmark -r 2 -i @ |
General Comments 0
You need to be logged in to leave comments.
Login now