Show More
@@ -901,7 +901,7 b' def checkformat(repo, mark):' | |||||
901 | """ |
|
901 | """ | |
902 | mark = mark.strip() |
|
902 | mark = mark.strip() | |
903 | if not mark: |
|
903 | if not mark: | |
904 |
raise error. |
|
904 | raise error.InputError( | |
905 | _(b"bookmark names cannot consist entirely of whitespace") |
|
905 | _(b"bookmark names cannot consist entirely of whitespace") | |
906 | ) |
|
906 | ) | |
907 | scmutil.checknewlabel(repo, mark, b'bookmark') |
|
907 | scmutil.checknewlabel(repo, mark, b'bookmark') | |
@@ -917,7 +917,7 b' def delete(repo, tr, names):' | |||||
917 | changes = [] |
|
917 | changes = [] | |
918 | for mark in names: |
|
918 | for mark in names: | |
919 | if mark not in marks: |
|
919 | if mark not in marks: | |
920 |
raise error. |
|
920 | raise error.InputError(_(b"bookmark '%s' does not exist") % mark) | |
921 | if mark == repo._activebookmark: |
|
921 | if mark == repo._activebookmark: | |
922 | deactivate(repo) |
|
922 | deactivate(repo) | |
923 | changes.append((mark, None)) |
|
923 | changes.append((mark, None)) | |
@@ -937,7 +937,7 b' def rename(repo, tr, old, new, force=Fal' | |||||
937 | marks = repo._bookmarks |
|
937 | marks = repo._bookmarks | |
938 | mark = checkformat(repo, new) |
|
938 | mark = checkformat(repo, new) | |
939 | if old not in marks: |
|
939 | if old not in marks: | |
940 |
raise error. |
|
940 | raise error.InputError(_(b"bookmark '%s' does not exist") % old) | |
941 | changes = [] |
|
941 | changes = [] | |
942 | for bm in marks.checkconflict(mark, force): |
|
942 | for bm in marks.checkconflict(mark, force): | |
943 | changes.append((bm, None)) |
|
943 | changes.append((bm, None)) | |
@@ -1041,7 +1041,7 b' def printbookmarks(ui, repo, fm, names=N' | |||||
1041 | bmarks = {} |
|
1041 | bmarks = {} | |
1042 | for bmark in names or marks: |
|
1042 | for bmark in names or marks: | |
1043 | if bmark not in marks: |
|
1043 | if bmark not in marks: | |
1044 |
raise error. |
|
1044 | raise error.InputError(_(b"bookmark '%s' does not exist") % bmark) | |
1045 | active = repo._activebookmark |
|
1045 | active = repo._activebookmark | |
1046 | if bmark == active: |
|
1046 | if bmark == active: | |
1047 | prefix, label = b'*', activebookmarklabel |
|
1047 | prefix, label = b'*', activebookmarklabel |
@@ -79,7 +79,7 b' list bookmarks' | |||||
79 | * X2 0:f7b1eb17ad24 |
|
79 | * X2 0:f7b1eb17ad24 | |
80 | $ hg bookmarks -l X A Y |
|
80 | $ hg bookmarks -l X A Y | |
81 | abort: bookmark 'A' does not exist |
|
81 | abort: bookmark 'A' does not exist | |
82 |
[ |
|
82 | [10] | |
83 | $ hg bookmarks -l -r0 |
|
83 | $ hg bookmarks -l -r0 | |
84 | abort: cannot specify both --list and --rev |
|
84 | abort: cannot specify both --list and --rev | |
85 | [10] |
|
85 | [10] | |
@@ -245,7 +245,7 b' rename nonexistent bookmark' | |||||
245 |
|
245 | |||
246 | $ hg bookmark -m A B |
|
246 | $ hg bookmark -m A B | |
247 | abort: bookmark 'A' does not exist |
|
247 | abort: bookmark 'A' does not exist | |
248 |
[ |
|
248 | [10] | |
249 |
|
249 | |||
250 | rename to existent bookmark |
|
250 | rename to existent bookmark | |
251 |
|
251 | |||
@@ -342,7 +342,7 b' delete nonexistent bookmark' | |||||
342 |
|
342 | |||
343 | $ hg bookmark -d A |
|
343 | $ hg bookmark -d A | |
344 | abort: bookmark 'A' does not exist |
|
344 | abort: bookmark 'A' does not exist | |
345 |
[ |
|
345 | [10] | |
346 |
|
346 | |||
347 | delete with --inactive |
|
347 | delete with --inactive | |
348 |
|
348 | |||
@@ -385,12 +385,12 b' reject bookmark name with newline' | |||||
385 | $ hg bookmark ' |
|
385 | $ hg bookmark ' | |
386 | > ' |
|
386 | > ' | |
387 | abort: bookmark names cannot consist entirely of whitespace |
|
387 | abort: bookmark names cannot consist entirely of whitespace | |
388 |
[ |
|
388 | [10] | |
389 |
|
389 | |||
390 | $ hg bookmark -m Z ' |
|
390 | $ hg bookmark -m Z ' | |
391 | > ' |
|
391 | > ' | |
392 | abort: bookmark names cannot consist entirely of whitespace |
|
392 | abort: bookmark names cannot consist entirely of whitespace | |
393 |
[ |
|
393 | [10] | |
394 |
|
394 | |||
395 | bookmark with reserved name |
|
395 | bookmark with reserved name | |
396 |
|
396 | |||
@@ -528,11 +528,11 b' bookmark name with whitespace only' | |||||
528 |
|
528 | |||
529 | $ hg bookmark ' ' |
|
529 | $ hg bookmark ' ' | |
530 | abort: bookmark names cannot consist entirely of whitespace |
|
530 | abort: bookmark names cannot consist entirely of whitespace | |
531 |
[ |
|
531 | [10] | |
532 |
|
532 | |||
533 | $ hg bookmark -m Y ' ' |
|
533 | $ hg bookmark -m Y ' ' | |
534 | abort: bookmark names cannot consist entirely of whitespace |
|
534 | abort: bookmark names cannot consist entirely of whitespace | |
535 |
[ |
|
535 | [10] | |
536 |
|
536 | |||
537 | invalid bookmark |
|
537 | invalid bookmark | |
538 |
|
538 |
@@ -765,7 +765,7 b' Attempting a write command with HTTP GET' | |||||
765 | no bookmarks set |
|
765 | no bookmarks set | |
766 | $ hg bookmark -d bm |
|
766 | $ hg bookmark -d bm | |
767 | abort: bookmark 'bm' does not exist |
|
767 | abort: bookmark 'bm' does not exist | |
768 |
[ |
|
768 | [10] | |
769 |
|
769 | |||
770 | $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=customwritenoperm' |
|
770 | $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=customwritenoperm' | |
771 | 405 push requires POST request |
|
771 | 405 push requires POST request | |
@@ -806,7 +806,7 b' Attempting a write command with an unkno' | |||||
806 | no bookmarks set |
|
806 | no bookmarks set | |
807 | $ hg bookmark -d bm |
|
807 | $ hg bookmark -d bm | |
808 | abort: bookmark 'bm' does not exist |
|
808 | abort: bookmark 'bm' does not exist | |
809 |
[ |
|
809 | [10] | |
810 |
|
810 | |||
811 | $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=customwritenoperm' |
|
811 | $ get-with-headers.py $LOCALIP:$HGPORT '?cmd=customwritenoperm' | |
812 | 405 push requires POST request |
|
812 | 405 push requires POST request |
General Comments 0
You need to be logged in to leave comments.
Login now