[PATCH 2 of 4] test: rename 'test-push-r.t' to 'test-push.t'
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Thu Nov 3 04:35:19 EDT 2016
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at ens-lyon.org>
# Date 1478145526 -3600
# Thu Nov 03 04:58:46 2016 +0100
# Node ID 2df91e4f382100ec1f5c835bfe2c23081b415ce0
# Parent 88c6789dedad1ca6bf4d4323b7332e76f233b531
# EXP-Topic pushtest
test: rename 'test-push-r.t' to 'test-push.t'
We do not have a simple test for 'hg push' but we have multiple tiny tests for
various aspect of it. We'll unify them into a single file, and we start with
'test-push-r.t'. The code is unchanged but we renamed the repository used to
avoid collision with other tests we'll import in coming changesets.
Test timing for the record:
start end cuser csys real Test
1.850 2.640 0.650 0.090 0.790 test-push-validation.t
2.640 3.520 0.760 0.090 0.880 test-push-hook-lock.t
0.000 1.850 1.560 0.210 1.850 test-push-r.t
diff --git a/tests/test-push-r.t b/tests/test-push.t
rename from tests/test-push-r.t
rename to tests/test-push.t
--- a/tests/test-push-r.t
+++ b/tests/test-push.t
@@ -1,5 +1,12 @@
- $ hg init test
- $ hg -R test unbundle "$TESTDIR/bundles/remote.hg"
+==================================
+Basic testing for the push command
+==================================
+
+Testing of the '--rev' flag
+===========================
+
+ $ hg init test-revflag
+ $ hg -R test-revflag unbundle "$TESTDIR/bundles/remote.hg"
adding changesets
adding manifests
adding file changes
@@ -8,12 +15,12 @@
$ for i in 0 1 2 3 4 5 6 7 8; do
> echo
- > hg init test-"$i"
- > hg -R test push -r "$i" test-"$i"
- > hg -R test-"$i" verify
+ > hg init test-revflag-"$i"
+ > hg -R test-revflag push -r "$i" test-revflag-"$i"
+ > hg -R test-revflag-"$i" verify
> done
- pushing to test-0
+ pushing to test-revflag-0
searching for changes
adding changesets
adding manifests
@@ -25,7 +32,7 @@
checking files
1 files, 1 changesets, 1 total revisions
- pushing to test-1
+ pushing to test-revflag-1
searching for changes
adding changesets
adding manifests
@@ -37,7 +44,7 @@
checking files
1 files, 2 changesets, 2 total revisions
- pushing to test-2
+ pushing to test-revflag-2
searching for changes
adding changesets
adding manifests
@@ -49,7 +56,7 @@
checking files
1 files, 3 changesets, 3 total revisions
- pushing to test-3
+ pushing to test-revflag-3
searching for changes
adding changesets
adding manifests
@@ -61,7 +68,7 @@
checking files
1 files, 4 changesets, 4 total revisions
- pushing to test-4
+ pushing to test-revflag-4
searching for changes
adding changesets
adding manifests
@@ -73,7 +80,7 @@
checking files
1 files, 2 changesets, 2 total revisions
- pushing to test-5
+ pushing to test-revflag-5
searching for changes
adding changesets
adding manifests
@@ -85,7 +92,7 @@
checking files
1 files, 3 changesets, 3 total revisions
- pushing to test-6
+ pushing to test-revflag-6
searching for changes
adding changesets
adding manifests
@@ -97,7 +104,7 @@
checking files
2 files, 4 changesets, 5 total revisions
- pushing to test-7
+ pushing to test-revflag-7
searching for changes
adding changesets
adding manifests
@@ -109,7 +116,7 @@
checking files
3 files, 5 changesets, 6 total revisions
- pushing to test-8
+ pushing to test-revflag-8
searching for changes
adding changesets
adding manifests
@@ -121,10 +128,10 @@
checking files
2 files, 5 changesets, 5 total revisions
- $ cd test-8
+ $ cd test-revflag-8
- $ hg pull ../test-7
- pulling from ../test-7
+ $ hg pull ../test-revflag-7
+ pulling from ../test-revflag-7
searching for changes
adding changesets
adding manifests
More information about the Mercurial-devel
mailing list