test-touch: add a test for rename preservation after touch
This bug was recently fixed in 3.2.
--- a/tests/test-touch.t Mon Nov 03 11:11:14 2014 +0000
+++ b/tests/test-touch.t Mon Nov 03 11:41:10 2014 +0000
@@ -86,3 +86,25 @@
o 4:[0-9a-f]{12} a (re)
+check move data kept after rebase on touch:
+
+ $ touch gna1
+ $ hg commit -Am gna1
+ adding gna1
+ $ hg mv gna1 gna2
+ $ hg commit -m move
+ $ hg st -C --change=tip
+ A gna2
+ gna1
+ R gna1
+ $ hg up .^
+ 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
+
+ $ hg touch
+ 1 new unstable changesets
+
+ $ hg rebase -s 11 -d 12
+ $ hg st -C --change=tip
+ A gna2
+ gna1
+ R gna1