tests/test-topic-stack.t
changeset 1957 ea5553e47027
parent 1956 d8f1e432b16a
child 1958 62d5d4206840
equal deleted inserted replaced
1956:d8f1e432b16a 1957:ea5553e47027
    56   $ hg topic --list
    56   $ hg topic --list
    57   t4@ c_f (current)
    57   t4@ c_f (current)
    58   t3: c_e
    58   t3: c_e
    59   t2: c_d
    59   t2: c_d
    60   t1: c_c
    60   t1: c_c
    61     _ c_b
    61     ^ c_b
    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
   104   $ hg topic --list
   104   $ hg topic --list
   105   t4$ c_f (unstable)
   105   t4$ c_f (unstable)
   106   t3$ c_e (unstable)
   106   t3$ c_e (unstable)
   107   t2@ c_d (current)
   107   t2@ c_d (current)
   108   t1: c_c
   108   t1: c_c
   109     _ c_b
   109     ^ c_b
   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
   170 Test output
   170 Test output
   171 
   171 
   172   $ hg top -l
   172   $ hg top -l
   173   t6: c_f
   173   t6: c_f
   174   t5: c_e
   174   t5: c_e
   175     _ c_d
   175     ^ c_d
   176   t4@ c_h (current)
   176   t4@ c_h (current)
   177   t3: c_g
   177   t3: c_g
   178   t2: c_d
   178   t2: c_d
   179   t1: c_c
   179   t1: c_c
   180     _ c_b
   180     ^ c_b
   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
   212   
   212   
   213 
   213 
   214   $ hg topic --list
   214   $ hg topic --list
   215   t6$ c_f (unstable)
   215   t6$ c_f (unstable)
   216   t5$ c_e (unstable)
   216   t5$ c_e (unstable)
   217     _ c_D
   217     ^ c_D
   218   t4: c_h
   218   t4: c_h
   219   t3: c_g
   219   t3: c_g
   220   t2@ c_D (current)
   220   t2@ c_D (current)
   221   t1: c_c
   221   t1: c_c
   222     _ c_b
   222     ^ c_b