comparison tests/test-bookmarks.t @ 19147:5b1835485442

bookmarks: allow bookmark command to take multiple arguments This change allows setting or deleting multiple bookmarks at once. If more than one is being set and --inactive is not given, the first one is made active.
author Kevin Bullock <kbullock@ringworld.org>
date Thu, 02 May 2013 21:28:18 -0500
parents 23f785b38af3
children f37b5a17e6a0
comparison
equal deleted inserted replaced
19146:a718a0ba6787 19147:5b1835485442
166 Z 0:f7b1eb17ad24 166 Z 0:f7b1eb17ad24
167 167
168 $ hg bookmark -d REVSET 168 $ hg bookmark -d REVSET
169 $ hg bookmark -d TIP 169 $ hg bookmark -d TIP
170 170
171 rename without new name 171 rename without new name or multiple names
172 172
173 $ hg bookmark -m Y 173 $ hg bookmark -m Y
174 abort: new bookmark name required 174 abort: new bookmark name required
175 [255]
176 $ hg bookmark -m Y Y2 Y3
177 abort: only one new bookmark name allowed
175 [255] 178 [255]
176 179
177 delete without name 180 delete without name
178 181
179 $ hg bookmark -d 182 $ hg bookmark -d
415 Y 2:db815d6d32e6 418 Y 2:db815d6d32e6
416 Z 2:db815d6d32e6 419 Z 2:db815d6d32e6
417 a@ 2:db815d6d32e6 420 a@ 2:db815d6d32e6
418 x y 2:db815d6d32e6 421 x y 2:db815d6d32e6
419 422
420 $ hg bookmark -d @ 423 delete multiple bookmarks at once
421 $ hg bookmark -d a@ 424
425 $ hg bookmark -d @ a@
422 426
423 test clone with a bookmark named "default" (issue3677) 427 test clone with a bookmark named "default" (issue3677)
424 428
425 $ hg bookmark -r 1 -f -i default 429 $ hg bookmark -r 1 -f -i default
426 $ hg clone . cloned-bookmark-default 430 $ hg clone . cloned-bookmark-default