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

[RFC/PATCH] t9157-*.sh: Add an svn version check

From
Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Date
Jan 6, 2011, 18:29 UTC
Message-ID
<4D260A03.90903@ramsay1.demon.co.uk>
Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
---

This test fails for me, because my svn version(s) are too old (1.4.3 and 1.4.6), and so I've got into the habit of running the tests with NO_SVN_TESTS=1. (which is a bit of a shame in terms of test coverage, but it is *much* quicker!)

I don't know the details, but it seems that the 'svn merge' of this vintage does not support the operations required by this test. Unfortunately, I don't know what the minimum required version of svn is, so I'm hoping that someone can take this patch and fix it up properly ...

ATB, Ramsay Jones

 t/t9157-git-svn-fetch-merge.sh |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/t/t9157-git-svn-fetch-merge.sh b/t/t9157-git-svn-fetch-merge.sh
index da582c5..accf61e 100755
--- a/t/t9157-git-svn-fetch-merge.sh
+++ b/t/t9157-git-svn-fetch-merge.sh
@@ -6,6 +6,14 @@
 test_description='git svn merge detection'
 . ./lib-git-svn.sh
 
+svn_ver="$(svn --version --quiet)"
+case $svn_ver in
+[0-1].[0-4].[0-6])
+	skip_all="skipping git-svn test - SVN too old ($svn_ver)"
+	test_done
+	;;
+esac
+
 test_expect_success 'initialize source svn repo' '
 	svn_cmd mkdir -m x "$svnrepo"/trunk &&
 	svn_cmd mkdir -m x "$svnrepo"/branches &&
-- 
1.7.3
Next: Eric Wong
Message 1 of 10 in “t9157-*.sh: Add an svn version check”
  1. t9157-*.sh: Add an svn version checkRamsay Jones, Jan 6, 2011
  2. Eric WongJan 7, 2011
  3. Steven WalterJan 7, 2011
  4. Eric WongJan 7, 2011
  5. Jonathan NiederJan 7, 2011
  6. Eric WongJan 7, 2011
  7. Eric WongJan 7, 2011
  8. Junio C HamanoJan 7, 2011
  9. Anders KaseorgJan 8, 2011
  10. Ramsay JonesJan 11, 2011

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.