tests/test-rebase-collapse.t
changeset 18395 904b7109938e
parent 18382 f3b21beb9802
child 18566 341868ef0cf6
equal deleted inserted replaced
18394:5010448197bc 18395:904b7109938e
   261 
   261 
   262 
   262 
   263 
   263 
   264 
   264 
   265 Test that branchheads cache is updated correctly when doing a strip in which
   265 Test that branchheads cache is updated correctly when doing a strip in which
   266 the parent of the ancestor node to be stripped does not become a head and
   266 the parent of the ancestor node to be stripped does not become a head and also,
   267 also, the parent of a node that is a child of the node stripped becomes a head
   267 the parent of a node that is a child of the node stripped becomes a head (node
   268 (node 3).
   268 3). The code is now much simpler and we could just test a simpler scenario
       
   269 We keep it the test this way in case new complexity is injected.
   269 
   270 
   270   $ hg clone -q -u . b b2
   271   $ hg clone -q -u . b b2
   271   $ cd b2
   272   $ cd b2
   272 
   273 
   273   $ hg heads --template="{rev}:{node} {branch}\n"
   274   $ hg heads --template="{rev}:{node} {branch}\n"
   280   c65502d4178782309ce0574c5ae6ee9485a9bafa default
   281   c65502d4178782309ce0574c5ae6ee9485a9bafa default
   281 
   282 
   282   $ hg strip 4
   283   $ hg strip 4
   283   saved backup bundle to $TESTTMP/b2/.hg/strip-backup/8a5212ebc852-backup.hg (glob)
   284   saved backup bundle to $TESTTMP/b2/.hg/strip-backup/8a5212ebc852-backup.hg (glob)
   284 
   285 
   285   $ cat $TESTTMP/b2/.hg/cache/branchheads
   286   $ cat $TESTTMP/b2/.hg/cache/branchheads-served
   286   c65502d4178782309ce0574c5ae6ee9485a9bafa 4
   287   c65502d4178782309ce0574c5ae6ee9485a9bafa 4
   287   2870ad076e541e714f3c2bc32826b5c6a6e5b040 default
   288   2870ad076e541e714f3c2bc32826b5c6a6e5b040 default
   288   c65502d4178782309ce0574c5ae6ee9485a9bafa default
   289   c65502d4178782309ce0574c5ae6ee9485a9bafa default
   289 
   290 
   290   $ hg heads --template="{rev}:{node} {branch}\n"
   291   $ hg heads --template="{rev}:{node} {branch}\n"