tests/test-wireproto-exchangev2.t
changeset 40922 ca6372b7e566
parent 40393 229d23cdb203
child 40924 08cfa77d7288
equal deleted inserted replaced
40921:afdbc9c6a333 40922:ca6372b7e566
  1234   transaction abort!
  1234   transaction abort!
  1235   rollback completed
  1235   rollback completed
  1236   (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob)
  1236   (sent 5 HTTP requests and * bytes; received * bytes in responses) (glob)
  1237   abort: revlog storage does not support missing parents write mode
  1237   abort: revlog storage does not support missing parents write mode
  1238   [255]
  1238   [255]
       
  1239 
       
  1240   $ killdaemons.py
       
  1241 
       
  1242 Repo with 2 DAG branches introducing same filenode, to test linknode adjustment
       
  1243 
       
  1244   $ hg init server-linknode
       
  1245   $ enablehttpv2 server-linknode
       
  1246   $ cd server-linknode
       
  1247   $ touch foo
       
  1248   $ hg -q commit -Am initial
       
  1249   $ echo foo > dupe-file
       
  1250   $ hg commit -Am 'dupe 1'
       
  1251   adding dupe-file
       
  1252   $ hg -q up -r 0
       
  1253   $ echo foo > dupe-file
       
  1254   $ hg commit -Am 'dupe 2'
       
  1255   adding dupe-file
       
  1256   created new head
       
  1257   $ hg serve -p $HGPORT -d --pid-file hg.pid -E error.log
       
  1258   $ cat hg.pid > $DAEMON_PIDS
       
  1259   $ cd ..
       
  1260 
       
  1261 Perform an incremental pull of both heads and ensure linkrev is written out properly
       
  1262 
       
  1263   $ hg clone -r 96ee1d7354c4 http://localhost:$HGPORT client-linknode-1
       
  1264   new changesets 96ee1d7354c4
       
  1265   updating to branch default
       
  1266   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
  1267   $ cd client-linknode-1
       
  1268   $ touch extra
       
  1269   $ hg commit -Am extra
       
  1270   adding extra
       
  1271   $ cd ..
       
  1272 
       
  1273   $ hg clone -r 96ee1d7354c4 http://localhost:$HGPORT client-linknode-2
       
  1274   new changesets 96ee1d7354c4
       
  1275   updating to branch default
       
  1276   1 files updated, 0 files merged, 0 files removed, 0 files unresolved
       
  1277   $ cd client-linknode-2
       
  1278   $ touch extra
       
  1279   $ hg commit -Am extra
       
  1280   adding extra
       
  1281   $ cd ..
       
  1282 
       
  1283   $ hg -R client-linknode-1 pull -r 1681c33f9f80
       
  1284   pulling from http://localhost:$HGPORT/
       
  1285   searching for changes
       
  1286   new changesets 1681c33f9f80
       
  1287   (run 'hg update' to get a working copy)
       
  1288 
       
  1289 #if reporevlogstore
       
  1290   $ hg -R client-linknode-1 debugrevlogindex dupe-file
       
  1291      rev linkrev nodeid       p1           p2
       
  1292        0       2 2ed2a3912a0b 000000000000 000000000000
       
  1293 #endif
       
  1294 
       
  1295   $ hg -R client-linknode-2 pull -r 639c8990d6a5
       
  1296   pulling from http://localhost:$HGPORT/
       
  1297   searching for changes
       
  1298   new changesets 639c8990d6a5
       
  1299   (run 'hg update' to get a working copy)
       
  1300 
       
  1301 #if reporevlogstore
       
  1302   $ hg -R client-linknode-2 debugrevlogindex dupe-file
       
  1303   abort: revlog 'dupe-file' not found
       
  1304   [255]
       
  1305 #endif
       
  1306 
       
  1307   $ hg -R client-linknode-2 verify
       
  1308   checking changesets
       
  1309   checking manifests
       
  1310   crosschecking files in changesets and manifests
       
  1311   checking files
       
  1312    warning: revlog 'data/dupe-file.i' not in fncache!
       
  1313    2: empty or missing dupe-file
       
  1314    dupe-file@2: manifest refers to unknown revision 2ed2a3912a0b
       
  1315   checked 3 changesets with 2 changes to 3 files
       
  1316   1 warnings encountered!
       
  1317   hint: run "hg debugrebuildfncache" to recover from corrupt fncache
       
  1318   2 integrity errors encountered!
       
  1319   (first damaged changeset appears to be 2)
       
  1320   [1]