Skip to content
Snippets Groups Projects
Commit 8073665f3c4f authored by Siddharth Agarwal's avatar Siddharth Agarwal
Browse files

test-push.t: clean up compat cruft

parent a7956bcbffe1
No related branches found
No related tags found
No related merge requests found
......@@ -109,9 +109,7 @@
updating reference refs/heads/master
this should fail, no changes to push
The exit code for this was broken in Mercurial (incorrectly returning 0) until
issue3228 was fixed in 2.1
$ hg push -r master && false
$ hg push -r master
pushing to $TESTTMP/gitrepo
searching for changes
no changes found
......@@ -168,8 +166,5 @@
Push empty Hg repo to empty Git repo (issue #58)
Since there aren't any changes, exit code 1 is expected in modern Mercurial.
However, since it varies between supported Mercurial versions, we need to
force it to consistency for now. (see issue3228, fixed in Mercurial 2.1)
$ hg init hgrepo2
$ git init -q --bare gitrepo2
......@@ -174,6 +169,6 @@
$ hg init hgrepo2
$ git init -q --bare gitrepo2
$ hg -R hgrepo2 push gitrepo2 && false
$ hg -R hgrepo2 push gitrepo2
pushing to gitrepo2
searching for changes
no changes found
......
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