git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/2] remote-hg: tests: fix hg merge

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
May 17, 2013, 21:10 UTC
Message-ID
<1368825008-2815-3-git-send-email-felipe.contreras@gmail.com>
In-Reply-To
<1368825008-2815-1-git-send-email-felipe.contreras@gmail.com>

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>
---
 contrib/remote-helpers/test-hg-hg-git.sh | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/contrib/remote-helpers/test-hg-hg-git.sh b/contrib/remote-helpers/test-hg-hg-git.sh
index fbad2b9..f18e26f 100755
--- a/contrib/remote-helpers/test-hg-hg-git.sh
+++ b/contrib/remote-helpers/test-hg-hg-git.sh
@@ -103,11 +103,12 @@ setup () {
 	git config --global receive.denycurrentbranch warn
 	git config --global remote-hg.hg-git-compat true
 
-	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
@@ -197,7 +198,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"
-- 
1.8.3.rc2.542.g24820ba
Previous: Felipe ContrerasNext: Junio C Hamano
Message 8 of 12 in “remote-helpers: test fixes”
  1. 0/2 remote-helpers: test fixesFelipe Contreras, May 17, 2013
  2. 1/2 remote-helpers: tests: use python directlyFelipe Contreras, May 17, 2013
  3. Junio C HamanoMay 18, 2013
  4. David AguilarMay 18, 2013
  5. Felipe ContrerasMay 18, 2013
  6. Junio C HamanoMay 19, 2013
  7. Felipe ContrerasMay 19, 2013
  8. 2/2 remote-hg: tests: fix hg mergeFelipe Contreras, May 17, 2013
  9. Junio C HamanoMay 20, 2013
  10. Felipe ContrerasMay 20, 2013
  11. Junio C HamanoMay 20, 2013
  12. Felipe ContrerasMay 20, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.