Show More
@@ -807,6 +807,13 b' def bookmark(ui, repo, mark=None, rev=No' | |||
|
807 | 807 | raise util.Abort( |
|
808 | 808 | _("a bookmark cannot have the name of an existing branch")) |
|
809 | 809 | |
|
810 | if delete and rename: | |
|
811 | raise util.Abort(_("--delete and --rename are incompatible")) | |
|
812 | if delete and rev: | |
|
813 | raise util.Abort(_("--rev is incompatible with --delete")) | |
|
814 | if rename and rev: | |
|
815 | raise util.Abort(_("--rev is incompatible with --rename")) | |
|
816 | ||
|
810 | 817 | if delete: |
|
811 | 818 | if mark is None: |
|
812 | 819 | raise util.Abort(_("bookmark name required")) |
@@ -242,6 +242,20 b' bookmark with name of branch' | |||
|
242 | 242 | abort: a bookmark cannot have the name of an existing branch |
|
243 | 243 | [255] |
|
244 | 244 | |
|
245 | incompatible options | |
|
246 | ||
|
247 | $ hg bookmark -m Y -d Z | |
|
248 | abort: --delete and --rename are incompatible | |
|
249 | [255] | |
|
250 | ||
|
251 | $ hg bookmark -r 1 -d Z | |
|
252 | abort: --rev is incompatible with --delete | |
|
253 | [255] | |
|
254 | ||
|
255 | $ hg bookmark -r 1 -m Z Y | |
|
256 | abort: --rev is incompatible with --rename | |
|
257 | [255] | |
|
258 | ||
|
245 | 259 | force bookmark with existing name |
|
246 | 260 | |
|
247 | 261 | $ hg bookmark -f Z |
General Comments 0
You need to be logged in to leave comments.
Login now