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