Show More
@@ -1236,8 +1236,7 b' def bookmark(ui, repo, *names, **opts):' | |||
|
1236 | 1236 | else: |
|
1237 | 1237 | action = b'list' |
|
1238 | 1238 | |
|
1239 | if inactive and action in {b'delete', b'list'}: | |
|
1240 | raise error.Abort(_(b"--inactive is incompatible with --%s") % action) | |
|
1239 | cmdutil.check_incompatible_arguments(opts, b'inactive', b'delete', b'list') | |
|
1241 | 1240 | if not names and action in {b'add', b'delete'}: |
|
1242 | 1241 | raise error.Abort(_(b"bookmark name required")) |
|
1243 | 1242 |
@@ -84,7 +84,7 b' list bookmarks' | |||
|
84 | 84 | abort: cannot specify both --list and --rev |
|
85 | 85 | [255] |
|
86 | 86 | $ hg bookmarks -l --inactive |
|
87 | abort: --inactive is incompatible with --list | |
|
87 | abort: cannot specify both --inactive and --list | |
|
88 | 88 | [255] |
|
89 | 89 | |
|
90 | 90 | $ hg log -T '{bookmarks % "{rev} {bookmark}\n"}' |
@@ -347,7 +347,7 b' delete nonexistent bookmark' | |||
|
347 | 347 | delete with --inactive |
|
348 | 348 | |
|
349 | 349 | $ hg bookmark -d --inactive Y |
|
350 | abort: --inactive is incompatible with --delete | |
|
350 | abort: cannot specify both --inactive and --delete | |
|
351 | 351 | [255] |
|
352 | 352 | |
|
353 | 353 | bookmark name with spaces should be stripped |
General Comments 0
You need to be logged in to leave comments.
Login now