changeset 11918:f21ecd091970

tests: unify test-revlog-group-emptyiter
author Pradeepkumar Gayam <in3xes@gmail.com>
date Tue, 17 Aug 2010 17:53:11 +0530
parents b03cf2349a80
children 67fb33eb3add
files tests/test-revlog-group-emptyiter tests/test-revlog-group-emptyiter.out tests/test-revlog-group-emptyiter.t
diffstat 3 files changed, 33 insertions(+), 39 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-revlog-group-emptyiter	Tue Aug 17 17:48:59 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,23 +0,0 @@
-#! /bin/sh
-
-# issue 1678
-
-echo "# -- setting up base repo"
-hg init a
-cd a
-touch a
-hg ci -Am a
-cd ..
-
-echo "# -- cloning base repo"
-hg clone a b
-cd b
-
-echo "# -- setting up cset to push"
-hg up null
-touch a
-hg ci -Am b # different msg so we get a clog new entry
-
-echo "# -- pushing"
-hg push -f ../a
-
--- a/tests/test-revlog-group-emptyiter.out	Tue Aug 17 17:48:59 2010 +0530
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-# -- setting up base repo
-adding a
-# -- cloning base repo
-updating to branch default
-1 files updated, 0 files merged, 0 files removed, 0 files unresolved
-# -- setting up cset to push
-0 files updated, 0 files merged, 1 files removed, 0 files unresolved
-adding a
-created new head
-# -- pushing
-pushing to ../a
-searching for changes
-adding changesets
-adding manifests
-adding file changes
-added 1 changesets with 0 changes to 0 files (+1 heads)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/test-revlog-group-emptyiter.t	Tue Aug 17 17:53:11 2010 +0530
@@ -0,0 +1,33 @@
+# issue 1678
+setting up base repo
+  $ hg init a
+  $ cd a
+  $ touch a
+  $ hg ci -Am a
+  adding a
+  $ cd ..
+
+cloning base repo
+  $ hg clone a b
+  updating to branch default
+  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
+  $ cd b
+
+setting up cset to push
+  $ hg up null
+  0 files updated, 0 files merged, 1 files removed, 0 files unresolved
+  $ touch a
+different msg so we get a clog new entry
+  $ hg ci -Am b
+  adding a
+  created new head
+
+pushing
+  $ hg push -f ../a
+  pushing to ../a
+  searching for changes
+  adding changesets
+  adding manifests
+  adding file changes
+  added 1 changesets with 0 changes to 0 files (+1 heads)
+