Show More
@@ -811,6 +811,9 b' def bookmark(ui, repo, mark=None, rev=No' | |||||
811 | def checkconflict(repo, mark, force=False, target=None): |
|
811 | def checkconflict(repo, mark, force=False, target=None): | |
812 | if mark in marks and not force: |
|
812 | if mark in marks and not force: | |
813 | if target: |
|
813 | if target: | |
|
814 | if marks[mark] == target and target == cur: | |||
|
815 | # re-activating a bookmark | |||
|
816 | return | |||
814 | anc = repo.changelog.ancestors([repo[target].rev()]) |
|
817 | anc = repo.changelog.ancestors([repo[target].rev()]) | |
815 | bmctx = repo[marks[mark]] |
|
818 | bmctx = repo[marks[mark]] | |
816 | if bmctx.rev() in anc: |
|
819 | if bmctx.rev() in anc: |
@@ -363,6 +363,11 b' test rollback' | |||||
363 | * Z 2:db815d6d32e6 |
|
363 | * Z 2:db815d6d32e6 | |
364 | x y 2:db815d6d32e6 |
|
364 | x y 2:db815d6d32e6 | |
365 |
|
365 | |||
|
366 | activate bookmark on working dir parent without --force | |||
|
367 | ||||
|
368 | $ hg bookmark --inactive Z | |||
|
369 | $ hg bookmark Z | |||
|
370 | ||||
366 | test clone |
|
371 | test clone | |
367 |
|
372 | |||
368 | $ hg bookmark -r 2 -i @ |
|
373 | $ hg bookmark -r 2 -i @ |
General Comments 0
You need to be logged in to leave comments.
Login now