aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2013-05-24 21:29:58 -0500
committerJunio C Hamano <gitster@pobox.com>2013-05-28 08:02:24 -0700
commit2b02a40587a4a8b7f8bd0542b57c61ec97d0ef2a (patch)
tree0d22f7fda9e821390a0e653a751fe6342a1e8883
parent66f46aa14fa48e5d17885b46e80250e155c255e3 (diff)
downloadgit-2b02a40587a4a8b7f8bd0542b57c61ec97d0ef2a.tar.gz
git-2b02a40587a4a8b7f8bd0542b57c61ec97d0ef2a.tar.xz
remote-hg: add setup_big_push() helper
So we don't duplicate these commands. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xcontrib/remote-helpers/test-hg.sh15
1 files changed, 11 insertions, 4 deletions
diff --git a/contrib/remote-helpers/test-hg.sh b/contrib/remote-helpers/test-hg.sh
index b88723365..52c76ae0d 100755
--- a/contrib/remote-helpers/test-hg.sh
+++ b/contrib/remote-helpers/test-hg.sh
@@ -398,9 +398,7 @@ test_expect_success 'remote new bookmark multiple branch head' '
# cleanup previous stuff
rm -rf hgrepo
-test_expect_success 'remote big push' '
- test_when_finished "rm -rf hgrepo gitrepo*" &&
-
+setup_big_push () {
(
hg init hgrepo &&
cd hgrepo &&
@@ -459,8 +457,17 @@ test_expect_success 'remote big push' '
git checkout -q -b branches/new_branch master &&
echo ten > content &&
- git commit -q -a -m ten &&
+ git commit -q -a -m ten
+ )
+}
+test_expect_success 'remote big push' '
+ test_when_finished "rm -rf hgrepo gitrepo*" &&
+
+ setup_big_push
+
+ (
+ cd gitrepo &&
test_expect_code 1 git push origin master \
good_bmark bad_bmark1 bad_bmark2 new_bmark \
branches/good_branch branches/bad_branch \