Skip to content
Snippets Groups Projects
Commit a8d2071c authored by Pierre-Yves David's avatar Pierre-Yves David
Browse files

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
parent 24ea4703
No related branches found
No related tags found
No related merge requests found
$ 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,8 +15,8 @@
$ 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
......@@ -14,6 +21,6 @@
> 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,5 +128,5 @@
checking files
2 files, 5 changesets, 5 total revisions
$ cd test-8
$ cd test-revflag-8
......@@ -125,6 +132,6 @@
$ 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment