tests/test-evolve-obshistory-phase-divergent.t
changeset 5339 258c0a99c5b0
parent 5337 9eba849b4c3d
child 5340 9351e6c22e74
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
     8 
     7 
     9 Test output with phase-divergence
     8 Test output with phase-divergence
    10 ===================================
     9 =================================
    11 
    10 
    12 Test setup
    11 Test setup
    13 ----------
    12 ----------
    14 
    13 
    15   $ hg init $TESTTMP/phase-divergence
    14   $ hg init $TESTTMP/phase-divergence
    64      summary:     ROOT
    63      summary:     ROOT
    65   
    64   
    66 Actual test
    65 Actual test
    67 -----------
    66 -----------
    68 
    67 
    69 Check that debugobshistory on the divergent revision show both destinations
    68 Check that obslog on the public revision shows both public (diverged) and draft (divergent) revisions
    70   $ hg obslog --hidden 471f378eab4c --patch
    69   $ hg obslog --hidden 471f378eab4c --patch
    71   @  471f378eab4c (1) A0
    70   @  471f378eab4c (1) A0
    72        reworded(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000)
    71        reworded(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000)
    73          diff -r 471f378eab4c -r fdf9bde5129a changeset-description
    72          diff -r 471f378eab4c -r fdf9bde5129a changeset-description
    74          --- a/changeset-description
    73          --- a/changeset-description
   121           ],
   120           ],
   122           "node": "471f378eab4c5e25f6c77f785b27c936efb22874",
   121           "node": "471f378eab4c5e25f6c77f785b27c936efb22874",
   123           "shortdescription": "A0"
   122           "shortdescription": "A0"
   124       }
   123       }
   125   ]
   124   ]
   126 Check that debugobshistory on the first diverged revision show the revision
   125 Check that obslog on the draft (divergent) revision also shows public (diverged) revision
   127 and the diverent one
       
   128   $ hg obslog fdf9bde5129a --patch
   126   $ hg obslog fdf9bde5129a --patch
   129   *  fdf9bde5129a (2) A1
   127   *  fdf9bde5129a (2) A1
   130   |
   128   |
   131   @  471f378eab4c (1) A0
   129   @  471f378eab4c (1) A0
   132        reworded(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   130        reworded(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   137          -A0
   135          -A0
   138          +A1
   136          +A1
   139   
   137   
   140   
   138   
   141 
   139 
   142 Check that all option show all of them
   140 Check that all option shows all of them
   143   $ hg obslog fdf9bde5129a -a --patch
   141   $ hg obslog fdf9bde5129a -a --patch
   144   *  fdf9bde5129a (2) A1
   142   *  fdf9bde5129a (2) A1
   145   |
   143   |
   146   @  471f378eab4c (1) A0
   144   @  471f378eab4c (1) A0
   147        reworded(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   145        reworded(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   151          @@ -1,1 +1,1 @@
   149          @@ -1,1 +1,1 @@
   152          -A0
   150          -A0
   153          +A1
   151          +A1
   154   
   152   
   155   
   153   
   156 Check that debugobshistory on the both diverged revision show a coherent
   154 Check that obslog on the both draft (divergent) and public (diverged) revisions shows a coherent graph
   157 graph
       
   158   $ hg obslog 'fdf9bde5129a+fdf9bde5129a' --patch
   155   $ hg obslog 'fdf9bde5129a+fdf9bde5129a' --patch
   159   *  fdf9bde5129a (2) A1
   156   *  fdf9bde5129a (2) A1
   160   |
   157   |
   161   @  471f378eab4c (1) A0
   158   @  471f378eab4c (1) A0
   162        reworded(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000)
   159        reworded(description) as fdf9bde5129a using amend by test (Thu Jan 01 00:00:00 1970 +0000)