# HG changeset patch # User Pierre-Yves David # Date 1401223456 25200 # Node ID 3bfadd70550b7527ec76f5e7854983535e2ad7e0 # Parent c26a11cdafeb4a36b03f68ff27f1e0d936e84373 bundle2: add more phase movement in the test To test phase exchange with bundle2 we need some phase movement to happen. Appropriate logging is added to track those changes. diff -r c26a11cdafeb -r 3bfadd70550b tests/test-bundle2.t --- a/tests/test-bundle2.t Tue May 27 13:40:12 2014 -0700 +++ b/tests/test-bundle2.t Tue May 27 13:44:16 2014 -0700 @@ -764,6 +764,7 @@ clone --pull $ cd .. + $ hg -R main phase --public cd010b8cd998 $ hg clone main other --pull --rev 9520eea781bc adding changesets adding manifests @@ -774,11 +775,12 @@ $ hg -R other log -G @ 1:9520eea781bc draft Nicolas Dumazet E | - o 0:cd010b8cd998 draft Nicolas Dumazet A + o 0:cd010b8cd998 public Nicolas Dumazet A pull + $ hg -R main phase --public 9520eea781bc $ hg -R other pull -r 24b6387c8c8c pulling from $TESTTMP/main (glob) searching for changes @@ -787,15 +789,43 @@ adding file changes added 1 changesets with 1 changes to 1 files (+1 heads) (run 'hg heads' to see heads, 'hg merge' to merge) + $ hg -R other log -G + o 2:24b6387c8c8c draft Nicolas Dumazet F + | + | @ 1:9520eea781bc draft Nicolas Dumazet E + |/ + o 0:cd010b8cd998 public Nicolas Dumazet A + +pull empty (with phase movement) + + $ hg -R main phase --public 24b6387c8c8c + $ hg -R other pull -r 24b6387c8c8c + pulling from $TESTTMP/main (glob) + no changes found + $ hg -R other log -G + o 2:24b6387c8c8c public Nicolas Dumazet F + | + | @ 1:9520eea781bc draft Nicolas Dumazet E + |/ + o 0:cd010b8cd998 public Nicolas Dumazet A + pull empty $ hg -R other pull -r 24b6387c8c8c pulling from $TESTTMP/main (glob) no changes found + $ hg -R other log -G + o 2:24b6387c8c8c public Nicolas Dumazet F + | + | @ 1:9520eea781bc draft Nicolas Dumazet E + |/ + o 0:cd010b8cd998 public Nicolas Dumazet A + push + $ hg -R main phase --public eea13746799a $ hg -R main push other --rev eea13746799a pushing to other searching for changes @@ -803,6 +833,15 @@ remote: adding manifests remote: adding file changes remote: added 1 changesets with 0 changes to 0 files (-1 heads) + $ hg -R other log -G + o 3:eea13746799a public Nicolas Dumazet G + |\ + | o 2:24b6387c8c8c public Nicolas Dumazet F + | | + @ | 1:9520eea781bc public Nicolas Dumazet E + |/ + o 0:cd010b8cd998 public Nicolas Dumazet A + pull over ssh @@ -839,12 +878,28 @@ remote: adding manifests remote: adding file changes remote: added 1 changesets with 1 changes to 1 files + $ hg -R other log -G + o 6:5fddd98957c8 draft Nicolas Dumazet C + | + o 5:42ccdea3bb16 draft Nicolas Dumazet B + | + | o 4:02de42196ebe draft Nicolas Dumazet H + | | + | | o 3:eea13746799a public Nicolas Dumazet G + | |/| + | o | 2:24b6387c8c8c public Nicolas Dumazet F + |/ / + | @ 1:9520eea781bc public Nicolas Dumazet E + |/ + o 0:cd010b8cd998 public Nicolas Dumazet A + push over http $ hg -R other serve -p $HGPORT2 -d --pid-file=other.pid -E other-error.log $ cat other.pid >> $DAEMON_PIDS + $ hg -R main phase --public 32af7686d403 $ hg -R main push http://localhost:$HGPORT2/ -r 32af7686d403 pushing to http://localhost:$HGPORT2/ searching for changes @@ -857,21 +912,21 @@ Check final content. $ hg -R other log -G - o 7:32af7686d403 draft Nicolas Dumazet D + o 7:32af7686d403 public Nicolas Dumazet D | - o 6:5fddd98957c8 draft Nicolas Dumazet C + o 6:5fddd98957c8 public Nicolas Dumazet C | - o 5:42ccdea3bb16 draft Nicolas Dumazet B + o 5:42ccdea3bb16 public Nicolas Dumazet B | | o 4:02de42196ebe draft Nicolas Dumazet H | | - | | o 3:eea13746799a draft Nicolas Dumazet G + | | o 3:eea13746799a public Nicolas Dumazet G | |/| - | o | 2:24b6387c8c8c draft Nicolas Dumazet F + | o | 2:24b6387c8c8c public Nicolas Dumazet F |/ / - | @ 1:9520eea781bc draft Nicolas Dumazet E + | @ 1:9520eea781bc public Nicolas Dumazet E |/ - o 0:cd010b8cd998 draft Nicolas Dumazet A + o 0:cd010b8cd998 public Nicolas Dumazet A Error Handling