tests/test-discovery-obshashrange.t
branchmercurial-4.4
changeset 4675 79bc0f1a832e
parent 4553 aafd51f145ea
parent 4674 3810ca63398f
equal deleted inserted replaced
4674:3810ca63398f 4675:79bc0f1a832e
   313   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> debugobsolete ffffffffffffffffffffffffffffffffffffffff 45f8b879de922f6a6e620ba04205730335b6fc7e (glob)
   313   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> debugobsolete ffffffffffffffffffffffffffffffffffffffff 45f8b879de922f6a6e620ba04205730335b6fc7e (glob)
   314   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> alias 'debugobsolete' expands to 'debugobsolete -d '0 0'' (glob)
   314   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> alias 'debugobsolete' expands to 'debugobsolete -d '0 0'' (glob)
   315   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> updated evo-ext-obscache in *.???? seconds (0r, 1o) (glob)
   315   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> updated evo-ext-obscache in *.???? seconds (0r, 1o) (glob)
   316   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> debugobsolete ffffffffffffffffffffffffffffffffffffffff 45f8b879de922f6a6e620ba04205730335b6fc7e exited 0 after *.?? seconds (glob)
   316   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> debugobsolete ffffffffffffffffffffffffffffffffffffffff 45f8b879de922f6a6e620ba04205730335b6fc7e exited 0 after *.?? seconds (glob)
   317   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> push -f --debug (glob)
   317   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> push -f --debug (glob)
   318   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> running python "*/dummyssh" *user@dummy* *hg -R server serve --stdio* (glob)
       
   319   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> sending hello command (glob)
       
   320   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> sending between command (glob)
       
   321   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> remote: * (glob)
       
   322   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> remote: capabilities: _evoext_getbundle_obscommon _evoext_obshashrange_v1 batch branchmap bundle2=HG20%0Abookmarks%0Achangegroup%3D01%2C02%0Adigests%3Dmd5%2Csha1%2Csha512%0Aerror%3Dabort%2Cunsupportedcontent%2Cpushraced%2Cpushkey%0Ahgtagsfnodes%0Alistkeys%0Aobsmarkers%3DV0%2CV1%0Aphases%3Dheads%0Apushkey%0Aremote-changegroup%3Dhttp%2Chttps changegroupsubset getbundle known lookup pushkey streamreqs=generaldelta,revlogv1 unbundle=HG10GZ,HG10BZ,HG10UN unbundlehash (glob)
       
   323   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> remote: 1 (glob)
       
   324   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> query 1; heads (glob)
       
   325   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> sending batch command (glob)
       
   326   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> taking quick initial sample (glob)
       
   327   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> query 2; still undecided: 5, sample size is: 5 (glob)
       
   328   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> sending known command (glob)
       
   329   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> 2 total queries in *.????s (glob)
       
   330   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> found 1 common and 1 unknown server heads, 2 roundtrips in *.????s (glob)
   318   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> found 1 common and 1 unknown server heads, 2 roundtrips in *.????s (glob)
   331   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> preparing listkeys for "phases" (glob)
       
   332   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> sending listkeys command (glob)
       
   333   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> received listkey for "phases": 58 bytes (glob)
       
   334   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> preparing listkeys for "namespaces" (glob)
       
   335   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> sending listkeys command (glob)
       
   336   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> received listkey for "namespaces": 40 bytes (glob)
       
   337   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> strip detected, evo-ext-stablerange-mergepoint cache reset (glob)
   319   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> strip detected, evo-ext-stablerange-mergepoint cache reset (glob)
   338   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> strip detected, evo-ext-depthcache cache reset (glob)
   320   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> strip detected, evo-ext-depthcache cache reset (glob)
   339   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> updated evo-ext-depthcache in *.???? seconds (6r) (glob)
   321   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> updated evo-ext-depthcache in *.???? seconds (6r) (glob)
   340   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> updated evo-ext-stablerange-mergepoint in *.???? seconds (6r) (glob)
   322   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> updated evo-ext-stablerange-mergepoint in *.???? seconds (6r) (glob)
   341   1970/01/01 00:00:00 * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> updated evo-ext-obshashrange in *.???? seconds (6r, 4o) (glob)
   323   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> updated evo-ext-obshashrange in *.???? seconds (6r, 4o) (glob)
   342   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> query 0; add more sample (target 100, current 1) (glob)
       
   343   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> query 0; sample size is 9, largest range 5 (glob)
       
   344   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> sending evoext_obshashrange_v1 command (glob)
       
   345   1970/01/01 00:00:00 * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> strip detected, evo-ext-stablesort cache reset (glob)
   324   1970/01/01 00:00:00 * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> strip detected, evo-ext-stablesort cache reset (glob)
   346   1970/01/01 00:00:00 * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> updated evo-ext-stablesort in *.???? seconds (6r) (glob)
   325   1970/01/01 00:00:00 * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> updated evo-ext-stablesort in *.???? seconds (6r) (glob)
   347   1970/01/01 00:00:00 * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> strip detected, evo-ext-firstmerge cache reset (glob)
   326   1970/01/01 00:00:00 * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> strip detected, evo-ext-firstmerge cache reset (glob)
   348   1970/01/01 00:00:00 * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> updated evo-ext-firstmerge in *.???? seconds (6r) (glob)
   327   1970/01/01 00:00:00 * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> updated evo-ext-firstmerge in *.???? seconds (6r) (glob)
   349   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> obsdiscovery, 0/5 mismatch - 1 obshashrange queries in *.???? seconds (glob)
   328   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> obsdiscovery, 0/5 mismatch - 1 obshashrange queries in *.???? seconds (glob)
   350   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> obsdiscovery, 0/5 mismatch - 1 obshashrange queries in *.???? seconds (glob)
       
   351   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> checking for updated bookmarks (glob)
       
   352   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> preparing listkeys for "bookmarks" (glob)
       
   353   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> sending listkeys command (glob)
       
   354   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> received listkey for "bookmarks": 0 bytes (glob)
       
   355   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> list of changesets: (glob)
       
   356   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> 45f8b879de922f6a6e620ba04205730335b6fc7e (glob)
       
   357   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> sending unbundle command (glob)
       
   358   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> bundle2-output-bundle: "HG20", 4 parts total (glob)
       
   359   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> bundle2-output-part: "replycaps" * bytes payload (glob)
       
   360   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> bundle2-output-part: "changegroup" (params: 1 mandatory) streamed payload (glob)
       
   361   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> bundle2-output-part: "phase-heads" 24 bytes payload (glob)
       
   362   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> bundle2-output-part: "obsmarkers" streamed payload (glob)
       
   363   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> bundle2-input-bundle: no-transaction (glob)
       
   364   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> bundle2-input-part: "reply:changegroup" (advisory) (params: 0 advisory) supported (glob)
       
   365   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> bundle2-input-part: "reply:obsmarkers" (params: 0 advisory) supported (glob)
       
   366   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> bundle2-input-bundle: 1 parts total (glob)
       
   367   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> preparing listkeys for "phases" (glob)
       
   368   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> sending listkeys command (glob)
       
   369   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> received listkey for "phases": 58 bytes (glob)
       
   370   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> push -f --debug exited 0 after *.?? seconds (glob)
   329   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> push -f --debug exited 0 after *.?? seconds (glob)
   371   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> log -G (glob)
   330   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> log -G (glob)
   372   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> writing .hg/cache/tags2-visible with 0 tags (glob)
   331   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> writing .hg/cache/tags2-visible with 0 tags (glob)
   373   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> log -G exited 0 after *.?? seconds (glob)
   332   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> log -G exited 0 after *.?? seconds (glob)
   374   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> debugobsolete 111111111111111aaaaaaaaa1111111111111111 66f7d451a68b85ed82ff5fcc254daf50c74144bd (glob)
   333   * @45f8b879de922f6a6e620ba04205730335b6fc7e (*)> debugobsolete 111111111111111aaaaaaaaa1111111111111111 66f7d451a68b85ed82ff5fcc254daf50c74144bd (glob)
   999   |
   958   |
  1000   o  0 1ea73414a91b r0
   959   o  0 1ea73414a91b r0
  1001   
   960   
  1002   $ hg --config extensions.strip= strip -r 'desc("foo")'
   961   $ hg --config extensions.strip= strip -r 'desc("foo")'
  1003   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
   962   0 files updated, 0 files merged, 1 files removed, 0 files unresolved
  1004   saved backup bundle to $TESTTMP/client/.hg/strip-backup/45f8b879de92-94c82517-backup.hg
   963   saved backup bundle to $TESTTMP/client/.hg/strip-backup/45f8b879de92-94c82517-backup.hg (glob)
  1005   $ hg log -G
   964   $ hg log -G
  1006   o  7 4de32a90b66c r7 tip
   965   o  7 4de32a90b66c r7 tip
  1007   |
   966   |
  1008   o  6 f69452c5b1af r6
   967   o  6 f69452c5b1af r6
  1009   |
   968   |
  1151 
  1110 
  1152   $ rm -f .hg/cache/evoext*
  1111   $ rm -f .hg/cache/evoext*
  1153   $ ls -1 .hg/cache/ | grep evoext
  1112   $ ls -1 .hg/cache/ | grep evoext
  1154   [1]
  1113   [1]
  1155   $ hg strip -r 5 --config extensions.strip=
  1114   $ hg strip -r 5 --config extensions.strip=
  1156   saved backup bundle to $TESTTMP/client/.hg/strip-backup/c8d03c1b5e94-b257442b-backup.hg
  1115   saved backup bundle to $TESTTMP/client/.hg/strip-backup/c8d03c1b5e94-b257442b-backup.hg (glob)
  1157   $ f -s .hg/cache/evoext*
  1116   $ f -s .hg/cache/evoext*
  1158   .hg/cache/evoext-obscache-00: size=70
  1117   .hg/cache/evoext-obscache-00: size=70
  1159   $ cd ..
  1118   $ cd ..
  1160 
  1119 
  1161 Check capabilities advertisement
       
  1162 ================================
       
  1163 
       
  1164   $ hg init with-evolve
       
  1165   $ cat << EOF >> with-evolve/.hg/hgrc
       
  1166   > [experimental]
       
  1167   > evolution.exchange=yes
       
  1168   > EOF
       
  1169   $ hg init without-evolve
       
  1170   $ cat << EOF >> without-evolve/.hg/hgrc
       
  1171   > [experimental]
       
  1172   > evolution.exchange=no
       
  1173   > EOF
       
  1174 
       
  1175   $ hg debugcapabilities ssh://user@dummy/with-evolve | grep _evoext
       
  1176     _evoext_getbundle_obscommon
       
  1177     _evoext_obshashrange_v1
       
  1178   $ hg debugcapabilities ssh://user@dummy/without-evolve | grep _evoext
       
  1179   [1]
       
  1180 
       
  1181 Using http:
       
  1182 
       
  1183   $ cat > web.conf << EOF
       
  1184   > [paths]
       
  1185   > / = *
       
  1186   > EOF
       
  1187 
       
  1188 (evolve version first)
       
  1189 
       
  1190   $ hg serve --web-conf web.conf -p $HGPORT -d --pid-file hg.pid
       
  1191   $ cat hg.pid >> $DAEMON_PIDS
       
  1192 
       
  1193   $ hg debugcapabilities http://localhost:$HGPORT/with-evolve| grep _evoext
       
  1194     _evoext_getbundle_obscommon
       
  1195     _evoext_obshashrange_v1
       
  1196   $ hg debugcapabilities http://localhost:$HGPORT/without-evolve| grep _evoext
       
  1197   [1]
       
  1198 
       
  1199   $ killdaemons.py
  1120   $ killdaemons.py
  1200 
       
  1201 
       
  1202 (evolve version second)
       
  1203 
       
  1204   $ hg serve --web-conf web.conf -p $HGPORT -d --pid-file hg.pid
       
  1205   $ cat hg.pid >> $DAEMON_PIDS
       
  1206 
       
  1207   $ hg debugcapabilities http://localhost:$HGPORT/without-evolve| grep _evoext
       
  1208   [1]
       
  1209   $ hg debugcapabilities http://localhost:$HGPORT/with-evolve| grep _evoext
       
  1210     _evoext_getbundle_obscommon
       
  1211     _evoext_obshashrange_v1
       
  1212 
       
  1213   $ killdaemons.py