tests/test-topic-stack.t
changeset 1954 61f36480740f
parent 1953 bdc5bb223b50
child 1956 d8f1e432b16a
equal deleted inserted replaced
1953:bdc5bb223b50 1954:61f36480740f
    53 
    53 
    54   $ hg topic
    54   $ hg topic
    55    * foo
    55    * foo
    56   $ hg topic --list
    56   $ hg topic --list
    57     _ c_b
    57     _ c_b
    58   t0: c_c
    58   t1: c_c
    59   t1: c_d
    59   t2: c_d
    60   t2: c_e
    60   t3: c_e
    61   t3@ c_f (current)
    61   t4@ c_f (current)
    62 
    62 
    63 error case, nothing to list
    63 error case, nothing to list
    64 
    64 
    65   $ hg topic --clear
    65   $ hg topic --clear
    66   $ hg topic --list
    66   $ hg topic --list
   101   |
   101   |
   102   o  0 default {} draft c_a
   102   o  0 default {} draft c_a
   103   
   103   
   104   $ hg topic --list
   104   $ hg topic --list
   105     _ c_b
   105     _ c_b
   106   t0: c_c
   106   t1: c_c
   107   t1@ c_d (current)
   107   t2@ c_d (current)
   108   t2$ c_e (unstable)
   108   t3$ c_e (unstable)
   109   t3$ c_f (unstable)
   109   t4$ c_f (unstable)
   110 
   110 
   111 Also test the revset:
   111 Also test the revset:
   112 
   112 
   113   $ hg log -r 'stack()'
   113   $ hg log -r 'stack()'
   114   2 default {foo} draft c_c
   114   2 default {foo} draft c_c
   169 
   169 
   170 Test output
   170 Test output
   171 
   171 
   172   $ hg top -l
   172   $ hg top -l
   173     _ c_b
   173     _ c_b
   174   t0: c_c
   174   t1: c_c
   175   t1: c_d
   175   t2: c_d
   176   t2: c_g
   176   t3: c_g
   177   t3@ c_h (current)
   177   t4@ c_h (current)
   178     _ c_d
   178     _ c_d
   179   t4: c_e
   179   t5: c_e
   180   t5: c_f
   180   t6: c_f
   181 
   181 
   182 Case with multiple heads on the topic with unstability involved
   182 Case with multiple heads on the topic with unstability involved
   183 ---------------------------------------------------------------
   183 ---------------------------------------------------------------
   184 
   184 
   185 We amend the message to make sure the display base pick the right changeset
   185 We amend the message to make sure the display base pick the right changeset
   211   o  0 default {} draft c_a
   211   o  0 default {} draft c_a
   212   
   212   
   213 
   213 
   214   $ hg topic --list
   214   $ hg topic --list
   215     _ c_b
   215     _ c_b
   216   t0: c_c
   216   t1: c_c
   217   t1@ c_D (current)
   217   t2@ c_D (current)
   218   t2: c_g
   218   t3: c_g
   219   t3: c_h
   219   t4: c_h
   220     _ c_D
   220     _ c_D
   221   t4$ c_e (unstable)
   221   t5$ c_e (unstable)
   222   t5$ c_f (unstable)
   222   t6$ c_f (unstable)