From 3ea455e7e769a1de3184d56038110dabb6edb52f Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Sat, 9 Jul 2016 09:43:37 +0200 Subject: [PATCH] test: add failing test for pushing a bookmark without changesets --- test/main.t | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/test/main.t b/test/main.t index 11667b3..6fef536 100755 --- a/test/main.t +++ b/test/main.t @@ -882,6 +882,31 @@ test_expect_failure 'push updates notes' ' test_cmp expected actual ' +test_expect_failure 'push bookmark without changesets' ' + test_when_finished "rm -rf hgrepo gitrepo" && + + ( + hg init hgrepo && + cd hgrepo && + echo one > content && + hg add content && + hg commit -m one + ) && + + git clone "hg::hgrepo" gitrepo && + + ( + cd gitrepo && + echo two > content && + git commit -a -m two && + git push origin master && + git branch feature-a && + git push origin feature-a + ) && + + check_bookmark hgrepo feature-a two +' + test_expect_success 'pull tags' ' test_when_finished "rm -rf hgrepo gitrepo" &&