Skip to content

Commit

Permalink
remote-hg: tests: fix hg merge
Browse files Browse the repository at this point in the history
Let's specify a merge tool, otherwise mercurial might open one and hang
our tests waiting for user input.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Felipe Contreras authored and Junio C Hamano committed May 21, 2013
1 parent 02a6072 commit 0c27c12
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions contrib/remote-helpers/test-hg-hg-git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,12 @@ setup () {
git config --global remote-hg.hg-git-compat true
git config --global remote-hg.track-branches false

HGEDITOR=/usr/bin/true
HGEDITOR=true
HGMERGE=true

GIT_AUTHOR_DATE="2007-01-01 00:00:00 +0230"
GIT_COMMITTER_DATE="$GIT_AUTHOR_DATE"
export HGEDITOR GIT_AUTHOR_DATE GIT_COMMITTER_DATE
export HGEDITOR HGMERGE GIT_AUTHOR_DATE GIT_COMMITTER_DATE
}

setup
Expand Down Expand Up @@ -198,7 +199,7 @@ test_expect_success 'merge conflict 1' '
echo C > afile &&
hg ci -m "A->C" &&
hg merge -r1 || true &&
hg merge -r1 &&
echo C > afile &&
hg resolve -m afile &&
hg ci -m "merge to C"
Expand Down

0 comments on commit 0c27c12

Please sign in to comment.