tests/test-evolve-obshistory-split.t
changeset 5339 258c0a99c5b0
parent 5309 9923c6d6f0a8
child 5349 e8660b28bfee
equal deleted inserted replaced
5338:7e93d9db1d1a 5339:258c0a99c5b0
     1 This test file test the various messages when accessing obsolete
     1 Testing obslog and other commands accessing obsolete revisions.
     2 revisions.
       
     3 
     2 
     4 Global setup
     3 Global setup
     5 ============
     4 ============
     6 
     5 
     7   $ . $TESTDIR/testlib/obshistory_setup.sh
     6   $ . $TESTDIR/testlib/obshistory_setup.sh
   101      summary:     ROOT
   100      summary:     ROOT
   102   
   101   
   103 Check output on the client side
   102 Check output on the client side
   104 -------------------------------
   103 -------------------------------
   105 
   104 
   106 Check that debugobshistory on split commit show both targets
   105 Check that obslog on split commit shows both targets
   107   $ hg obslog 471597cad322 --hidden --patch
   106   $ hg obslog 471597cad322 --hidden --patch
   108   x  471597cad322 (1) A0
   107   x  471597cad322 (1) A0
   109        split(parent, content) as 337fec4d2edc, f257fde29c7a using split by test (Thu Jan 01 00:00:00 1970 +0000)
   108        split(parent, content) as 337fec4d2edc, f257fde29c7a using split by test (Thu Jan 01 00:00:00 1970 +0000)
   110          note: testing split
   109          note: testing split
   111          (No patch available, too many successors (2))
   110          (No patch available, too many successors (2))
   143           ],
   142           ],
   144           "node": "471597cad322d1f659bb169751be9133dad92ef3",
   143           "node": "471597cad322d1f659bb169751be9133dad92ef3",
   145           "shortdescription": "A0"
   144           "shortdescription": "A0"
   146       }
   145       }
   147   ]
   146   ]
   148 Check that debugobshistory on the first successor after split show
   147 Check that obslog on the first successor after split shows the revision plus
   149 the revision plus the split one
   148 the split one
   150   $ hg obslog 337fec4d2edc --patch
   149   $ hg obslog 337fec4d2edc --patch
   151   o  337fec4d2edc (2) A0
   150   o  337fec4d2edc (2) A0
   152   |
   151   |
   153   x  471597cad322 (1) A0
   152   x  471597cad322 (1) A0
   154        split(parent, content) as 337fec4d2edc, f257fde29c7a using split by test (Thu Jan 01 00:00:00 1970 +0000)
   153        split(parent, content) as 337fec4d2edc, f257fde29c7a using split by test (Thu Jan 01 00:00:00 1970 +0000)
   155          note: testing split
   154          note: testing split
   156          (No patch available, too many successors (2))
   155          (No patch available, too many successors (2))
   157   
   156   
   158 With the all option, it should show the three changesets
   157 With the all option, it should show all three changesets
   159   $ hg obslog --all 337fec4d2edc --patch
   158   $ hg obslog --all 337fec4d2edc --patch
   160   o  337fec4d2edc (2) A0
   159   o  337fec4d2edc (2) A0
   161   |
   160   |
   162   | @  f257fde29c7a (3) A0
   161   | @  f257fde29c7a (3) A0
   163   |/
   162   |/
   164   x  471597cad322 (1) A0
   163   x  471597cad322 (1) A0
   165        split(parent, content) as 337fec4d2edc, f257fde29c7a using split by test (Thu Jan 01 00:00:00 1970 +0000)
   164        split(parent, content) as 337fec4d2edc, f257fde29c7a using split by test (Thu Jan 01 00:00:00 1970 +0000)
   166          note: testing split
   165          note: testing split
   167          (No patch available, too many successors (2))
   166          (No patch available, too many successors (2))
   168   
   167   
   169 Check that debugobshistory on the second successor after split show
   168 Check that obslog on the second successor after split shows the revision plus
   170 the revision plus the split one
   169 the split one
   171   $ hg obslog f257fde29c7a --patch
   170   $ hg obslog f257fde29c7a --patch
   172   @  f257fde29c7a (3) A0
   171   @  f257fde29c7a (3) A0
   173   |
   172   |
   174   x  471597cad322 (1) A0
   173   x  471597cad322 (1) A0
   175        split(parent, content) as 337fec4d2edc, f257fde29c7a using split by test (Thu Jan 01 00:00:00 1970 +0000)
   174        split(parent, content) as 337fec4d2edc, f257fde29c7a using split by test (Thu Jan 01 00:00:00 1970 +0000)
   176          note: testing split
   175          note: testing split
   177          (No patch available, too many successors (2))
   176          (No patch available, too many successors (2))
   178   
   177   
   179 With the all option, it should show the three changesets
   178 With the all option, it should show all three changesets
   180   $ hg obslog f257fde29c7a --all --patch
   179   $ hg obslog f257fde29c7a --all --patch
   181   o  337fec4d2edc (2) A0
   180   o  337fec4d2edc (2) A0
   182   |
   181   |
   183   | @  f257fde29c7a (3) A0
   182   | @  f257fde29c7a (3) A0
   184   |/
   183   |/
   196   x  471597cad322 (1) A0
   195   x  471597cad322 (1) A0
   197        split(parent, content) as 337fec4d2edc, f257fde29c7a using split by test (Thu Jan 01 00:00:00 1970 +0000)
   196        split(parent, content) as 337fec4d2edc, f257fde29c7a using split by test (Thu Jan 01 00:00:00 1970 +0000)
   198          note: testing split
   197          note: testing split
   199          (No patch available, too many successors (2))
   198          (No patch available, too many successors (2))
   200   
   199   
   201 Check that debugobshistory on both successors after split show
   200 Check that obslog on both successors after split shows a coherent graph
   202 a coherent graph
       
   203   $ hg obslog 'f257fde29c7a+337fec4d2edc' --patch
   201   $ hg obslog 'f257fde29c7a+337fec4d2edc' --patch
   204   o  337fec4d2edc (2) A0
   202   o  337fec4d2edc (2) A0
   205   |
   203   |
   206   | @  f257fde29c7a (3) A0
   204   | @  f257fde29c7a (3) A0
   207   |/
   205   |/