comparison tests/test-tags.t @ 12316:4134686b83e1

tests: add exit codes to unified tests
author Matt Mackall <mpm@selenic.com>
date Thu, 16 Sep 2010 17:51:32 -0500
parents 5b53aa2d4b99
children 92e30e135581
comparison
equal deleted inserted replaced
12315:ca58f6475f1d 12316:4134686b83e1
240 240
241 Remove nonexistent tag: 241 Remove nonexistent tag:
242 242
243 $ hg tag --remove foobar 243 $ hg tag --remove foobar
244 abort: tag 'foobar' does not exist 244 abort: tag 'foobar' does not exist
245 [255]
245 $ hg tip 246 $ hg tip
246 changeset: 5:5f6e8655b1c7 247 changeset: 5:5f6e8655b1c7
247 tag: tip 248 tag: tip
248 user: test 249 user: test
249 date: Thu Jan 01 00:00:00 1970 +0000 250 date: Thu Jan 01 00:00:00 1970 +0000
288 289
289 Don't allow moving tag without -f: 290 Don't allow moving tag without -f:
290 291
291 $ hg tag -r 3 bar 292 $ hg tag -r 3 bar
292 abort: tag 'bar' already exists (use -f to force) 293 abort: tag 'bar' already exists (use -f to force)
294 [255]
293 $ hg tags 295 $ hg tags
294 tip 6:735c3ca72986 296 tip 6:735c3ca72986
295 bar 0:bbd179dfa0a7 297 bar 0:bbd179dfa0a7
296 298
297 Strip 1: expose an old head: 299 Strip 1: expose an old head:
354 $ hg ci -m 'add foo' # rev 0 356 $ hg ci -m 'add foo' # rev 0
355 357
356 $ hg tag -r 0 -l localtag 358 $ hg tag -r 0 -l localtag
357 $ hg tag --remove localtag 359 $ hg tag --remove localtag
358 abort: tag 'localtag' is not a global tag 360 abort: tag 'localtag' is not a global tag
361 [255]
359 $ 362 $
360 $ hg tag -r 0 globaltag 363 $ hg tag -r 0 globaltag
361 $ hg tag --remove -l globaltag 364 $ hg tag --remove -l globaltag
362 abort: tag 'globaltag' is not a local tag 365 abort: tag 'globaltag' is not a local tag
366 [255]
363 $ hg tags -v 367 $ hg tags -v
364 tip 1:a0b6fe111088 368 tip 1:a0b6fe111088
365 localtag 0:bbd179dfa0a7 local 369 localtag 0:bbd179dfa0a7 local
366 globaltag 0:bbd179dfa0a7 370 globaltag 0:bbd179dfa0a7
367 $ exit 0 371 $ exit 0