changeset 12114:0a6b2e21bc86

tests: merge the two test-rename-dir-merge* into one
author Nicolas Dumazet <nicdumz.commits@gmail.com>
date Mon, 30 Aug 2010 13:55:57 +0900
parents d171000cf6f8
children a0dcbcbd1590
files tests/test-bisect.t tests/test-churn.t tests/test-inherit-mode.t tests/test-remove-new.t tests/test-remove.t tests/test-rename-dir-merge.t tests/test-rename-dir-merge2.t tests/test-rename.t tests/test-revert-flags.t tests/test-revert-unknown.t tests/test-revert.t tests/test-revset.t tests/test-strict.t
diffstat 2 files changed, 50 insertions(+), 45 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-rename-dir-merge.t	Mon Aug 30 13:51:27 2010 +0900
+++ b/tests/test-rename-dir-merge.t	Mon Aug 30 13:55:57 2010 +0900
@@ -113,3 +113,53 @@
   created new head
   $ hg debugrename b/c
   b/c renamed from a/c:354ae8da6e890359ef49ade27b68bbc361f3ca88
+
+
+Second scenario with two repos:
+
+  $ cd ..
+  $ mkdir r1
+  $ cd r1
+  $ hg init
+  $ mkdir a
+  $ echo foo > a/f
+  $ hg add a
+  adding a/f
+  $ hg ci -m "a/f == foo"
+  $ cd ..
+
+  $ hg clone r1 r2
+  updating to branch default
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ cd r2
+  $ hg mv a b
+  moving a/f to b/f
+  $ echo foo1 > b/f
+  $ hg ci -m" a -> b, b/f == foo1"
+  $ cd ..
+
+  $ cd r1
+  $ mkdir a/aa
+  $ echo bar > a/aa/g
+  $ hg add a/aa
+  adding a/aa/g
+  $ hg ci -m "a/aa/g"
+  $ hg pull ../r2
+  pulling from ../r2
+  searching for changes
+  adding changesets
+  adding manifests
+  adding file changes
+  added 1 changesets with 1 changes to 1 files (+1 heads)
+  (run 'hg heads' to see heads, 'hg merge' to merge)
+
+  $ hg merge
+  2 files updated, 0 files merged, 1 files removed, 0 files unresolved
+  (branch merge, don't forget to commit)
+
+  $ hg st -C
+  M b/f
+  A b/aa/g
+    a/aa/g
+  R a/aa/g
+  R a/f
--- a/tests/test-rename-dir-merge2.t	Mon Aug 30 13:51:27 2010 +0900
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-  $ mkdir r1
-  $ cd r1
-  $ hg init
-  $ mkdir a
-  $ echo foo > a/f
-  $ hg add a
-  adding a/f
-  $ hg ci -m "a/f == foo"
-  $ cd ..
-
-  $ hg clone r1 r2
-  updating to branch default
-  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
-  $ cd r2
-  $ hg mv a b
-  moving a/f to b/f
-  $ echo foo1 > b/f
-  $ hg ci -m" a -> b, b/f == foo1"
-  $ cd ..
-
-  $ cd r1
-  $ mkdir a/aa
-  $ echo bar > a/aa/g
-  $ hg add a/aa
-  adding a/aa/g
-  $ hg ci -m "a/aa/g"
-  $ hg pull ../r2
-  pulling from ../r2
-  searching for changes
-  adding changesets
-  adding manifests
-  adding file changes
-  added 1 changesets with 1 changes to 1 files (+1 heads)
-  (run 'hg heads' to see heads, 'hg merge' to merge)
-
-  $ hg merge
-  2 files updated, 0 files merged, 1 files removed, 0 files unresolved
-  (branch merge, don't forget to commit)
-
-  $ hg st -C
-  M b/f
-  A b/aa/g
-    a/aa/g
-  R a/aa/g
-  R a/f