comparison tests/test-bookmarks.t @ 26285:91cad8eb7951

bookmark: actually test update behavior in both cases The test claimed to test pull --update behaved the same way as pull + update, but the behavior of pull + update was never tested. We now test both.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 17 Sep 2015 17:17:54 -0700
parents 04ae6feb04c5
children 4b685712fa45
comparison
equal deleted inserted replaced
26284:c258f4d2bfb2 26285:91cad8eb7951
567 567
568 pull --update works the same as pull && update 568 pull --update works the same as pull && update
569 569
570 $ hg bookmark -r3 Y 570 $ hg bookmark -r3 Y
571 moving bookmark 'Y' forward from db815d6d32e6 571 moving bookmark 'Y' forward from db815d6d32e6
572 $ cp -r ../cloned-bookmarks-update ../cloned-bookmarks-manual-update
573
574 (manual version)
575
576 $ hg -R ../cloned-bookmarks-manual-update update Y
577 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
578 (activating bookmark Y)
579 $ hg -R ../cloned-bookmarks-manual-update pull .
580 pulling from .
581 searching for changes
582 adding changesets
583 adding manifests
584 adding file changes
585 added 2 changesets with 2 changes to 2 files (+1 heads)
586 updating bookmark Y
587 updating bookmark Z
588 (run 'hg heads' to see heads, 'hg merge' to merge)
589 $ hg -R ../cloned-bookmarks-manual-update update
590 updating to active bookmark Y
591 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
592 (activating bookmark Y)
593
594 (all in one version)
595
572 $ hg -R ../cloned-bookmarks-update update Y 596 $ hg -R ../cloned-bookmarks-update update Y
573 0 files updated, 0 files merged, 0 files removed, 0 files unresolved 597 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
574 (activating bookmark Y) 598 (activating bookmark Y)
575 $ hg -R ../cloned-bookmarks-update pull --update . 599 $ hg -R ../cloned-bookmarks-update pull --update .
576 pulling from . 600 pulling from .