diff tests/test-touch.t @ 702:b5a85a8909d3 stable

touch: properly handle touching multiple changeset
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Fri, 08 Feb 2013 22:44:43 +0000
parents f752089479ce
children af74a5cdf96b
line wrap: on
line diff
--- a/tests/test-touch.t	Fri Feb 08 22:12:46 2013 +0000
+++ b/tests/test-touch.t	Fri Feb 08 22:44:43 2013 +0000
@@ -57,3 +57,32 @@
   
   o  4:[0-9a-f]{12} a (re)
   
+
+Multiple touch
+
+  $ echo C > c
+  $ hg add c
+  $ hg commit -m c
+  $ echo D > d
+  $ hg add d
+  $ hg commit -m d
+  $ hg log -G
+  @  7:[0-9a-f]{12} d (re)
+  |
+  o  6:[0-9a-f]{12} c (re)
+  |
+  o  5:[0-9a-f]{12} a (re)
+  
+  o  4:[0-9a-f]{12} a (re)
+  
+  $ hg touch 6:7
+  $ hg log -G
+  @  9:[0-9a-f]{12} d (re)
+  |
+  o  8:[0-9a-f]{12} c (re)
+  |
+  o  5:[0-9a-f]{12} a (re)
+  
+  o  4:[0-9a-f]{12} a (re)
+  
+