Skip to content
Snippets Groups Projects
Commit c0c1a96ef56d authored by David M. Carr's avatar David M. Carr
Browse files

tests: add workflow coverage for push with no changes

test-bookmark-workflow.t now skips all Mercurial versions below 2.1, as the
return code is different, and it's more important for this test to accurately
show that we match the behavior of current Mercurial than that all versions
behave the same.
parent 4bc39fd24db3
No related merge requests found
......@@ -15,6 +15,10 @@
Bail if the user does not have dulwich
$ python -c 'import dulwich, dulwich.repo' || exit 80
Skip if Mercurial < 2.1; workflow was different before that
$ python -c 'from mercurial import util ; assert \
> util.version() != "unknown" and util.version() >= "2.1"' || exit 80
$ echo "[extensions]" >> $HGRCPATH
$ echo "hggit=$(echo $(dirname $TESTDIR))/hggit" >> $HGRCPATH
......@@ -105,6 +109,11 @@
searching for changes
no changes found
[1]
$ hg push
pushing to $TESTTMP/hgremoterepo
searching for changes
no changes found
[1]
$ cd ..
$ cd hggitlocalrepo
$ hg outgoing
......@@ -112,4 +121,9 @@
searching for changes
no changes found
[1]
$ hg push
pushing to $TESTTMP/gitremoterepo
searching for changes
no changes found
[1]
$ cd ..
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