Mercurial > hg
comparison tests/test-bookmarks.t @ 39304:fc54a290b4b0
bookmarks: adjust exception type so present(bookmark(.)) works as expected
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 25 Aug 2018 20:19:27 +0900 |
parents | 1eb370761fa0 |
children | 89630d0b3e23 |
comparison
equal
deleted
inserted
replaced
39303:1eb370761fa0 | 39304:fc54a290b4b0 |
---|---|
170 | 170 |
171 "." should fail if there's no active bookmark: | 171 "." should fail if there's no active bookmark: |
172 | 172 |
173 $ hg bookmark --inactive | 173 $ hg bookmark --inactive |
174 $ hg log -r 'bookmark(.)' | 174 $ hg log -r 'bookmark(.)' |
175 abort: no active bookmark | 175 abort: no active bookmark! |
176 [255] | 176 [255] |
177 BUG: this should be resolved to an empty set: | |
178 $ hg log -r 'present(bookmark(.))' | 177 $ hg log -r 'present(bookmark(.))' |
179 abort: no active bookmark | |
180 [255] | |
181 | 178 |
182 $ hg log -r 'bookmark(unknown)' | 179 $ hg log -r 'bookmark(unknown)' |
183 abort: bookmark 'unknown' does not exist! | 180 abort: bookmark 'unknown' does not exist! |
184 [255] | 181 [255] |
185 $ hg log -r 'bookmark("literal:unknown")' | 182 $ hg log -r 'bookmark("literal:unknown")' |
261 rename bookmark using . with no active bookmark | 258 rename bookmark using . with no active bookmark |
262 | 259 |
263 $ hg book rename-me | 260 $ hg book rename-me |
264 $ hg book -i rename-me | 261 $ hg book -i rename-me |
265 $ hg book -m . renamed | 262 $ hg book -m . renamed |
266 abort: no active bookmark | 263 abort: no active bookmark! |
267 [255] | 264 [255] |
268 $ hg up -q Y | 265 $ hg up -q Y |
269 $ hg book -d rename-me | 266 $ hg book -d rename-me |
270 | 267 |
271 delete bookmark using . | 268 delete bookmark using . |
281 delete bookmark using . with no active bookmark | 278 delete bookmark using . with no active bookmark |
282 | 279 |
283 $ hg book delete-me | 280 $ hg book delete-me |
284 $ hg book -i delete-me | 281 $ hg book -i delete-me |
285 $ hg book -d . | 282 $ hg book -d . |
286 abort: no active bookmark | 283 abort: no active bookmark! |
287 [255] | 284 [255] |
288 $ hg up -q Y | 285 $ hg up -q Y |
289 $ hg book -d delete-me | 286 $ hg book -d delete-me |
290 | 287 |
291 list bookmarks | 288 list bookmarks |