##// END OF EJS Templates
bookmarks: fix handling of multiple bookmarks with one to be deactivated...
Yuya Nishihara -
r43996:2a8cd7ed default
parent child Browse files
Show More
@@ -965,7 +965,7 def addbookmarks(repo, tr, names, rev=No
965 965 newact = mark
966 966 if inactive and mark == repo._activebookmark:
967 967 deactivate(repo)
968 return
968 continue
969 969 tgt = cur
970 970 if rev:
971 971 ctx = scmutil.revsingle(repo, rev)
@@ -976,6 +976,10 def addbookmarks(repo, tr, names, rev=No
976 976 changes.append((bm, None))
977 977 changes.append((mark, tgt))
978 978
979 # nothing changed but for the one deactivated above
980 if not changes:
981 return
982
979 983 if hiddenrev:
980 984 repo.ui.warn(_(b"bookmarking hidden changeset %s\n") % hiddenrev)
981 985
@@ -608,6 +608,17 activate bookmark on working dir parent
608 608 $ hg bookmark --inactive Z
609 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 622 test clone
612 623
613 624 $ hg bookmark -r 2 -i @
General Comments 0
You need to be logged in to leave comments. Login now