tests/test-touch.t
branchstable
changeset 4727 355b8e17e14c
parent 4613 30a544904238
child 4728 ef8907df73fc
equal deleted inserted replaced
4726:24e83f51ffc2 4727:355b8e17e14c
   168   $ hg touch 2
   168   $ hg touch 2
   169   abort: cannot touch public changesets: * (glob)
   169   abort: cannot touch public changesets: * (glob)
   170   (see 'hg help phases' for details)
   170   (see 'hg help phases' for details)
   171   [255]
   171   [255]
   172   $ hg touch --duplicate 2
   172   $ hg touch --duplicate 2
       
   173 
       
   174   $ cd ..
       
   175 
       
   176 Make sure touch doesn't fail to warn about divergence (issue6107)
       
   177 
       
   178   $ hg init touchdiv
       
   179   $ cd touchdiv
       
   180   $ echo c > c
       
   181   $ hg add c
       
   182   $ hg ci -m "added c"
       
   183 
       
   184   $ hg amend -m "modified c"
       
   185   $ hg prune . -q
       
   186 
       
   187   $ hg touch -r "desc('added c')" --hidden
       
   188   $ hg touch -r "desc('modified c')" --hidden
       
   189   2 new content-divergent changesets
       
   190 XXX: it should warn for divergence here
       
   191 
       
   192   $ cd ..