comparison tests/test-prev-next.t @ 3780:9da11755d615 stable

tests: add test demonstrating issue5808 This patch adds test showing that `next` and `prev` does not respect the `commands.update.check` config option, particularly when set to `noconflict`.
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 03 Jun 2018 02:50:55 +0530
parents 084038b98cd7
children e73a73b27f3e
comparison
equal deleted inserted replaced
3779:084038b98cd7 3780:9da11755d615
374 $ echo babar > bar 374 $ echo babar > bar
375 375
376 $ hg next --evolve 376 $ hg next --evolve
377 abort: uncommitted changes 377 abort: uncommitted changes
378 [255] 378 [255]
379
380 $ cd ..
381
382 Testing that `next` and `prev` respects `commands.update.check=noconflict`
383
384 $ hg init noconflict
385 $ cd noconflict
386 $ echo "[commands]" >> .hg/hgrc
387 $ echo "update.check=noconflict" >> .hg/hgrc
388
389 $ echo hi > wat
390 $ hg ci -Aqm "added wat"
391 $ echo hi > foo
392 $ hg ci -Aqm "added foo"
393 $ echo hi > bar
394 $ hg ci -Aqm "added bar"
395
396 testing for `hg prev`
397
398 $ echo bar > wat
399 $ hg prev
400 abort: uncommitted changes
401 (do you want --merge?)
402 [255]
403 $ hg diff
404 diff -r ac3de1218820 wat
405 --- a/wat Thu Jan 01 00:00:00 1970 +0000
406 +++ b/wat Thu Jan 01 00:00:00 1970 +0000
407 @@ -1,1 +1,1 @@
408 -hi
409 +bar
410
411 testing for `hg next`
412
413 $ echo hi > wat
414 $ hg up .^
415 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
416 $ echo bar > wat
417 $ hg next
418 abort: uncommitted changes
419 (do you want --merge?)
420 [255]
421 $ hg diff
422 diff -r cf959ce4e1ff wat
423 --- a/wat Thu Jan 01 00:00:00 1970 +0000
424 +++ b/wat Thu Jan 01 00:00:00 1970 +0000
425 @@ -1,1 +1,1 @@
426 -hi
427 +bar