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

[PATCH] t9157-git-svn-fetch-merge.sh: remove dependency on subversion 1.5

From
Steven Walter <stevenrwalter@gmail.com>
Date
Oct 23, 2010, 01:55 UTC
Message-ID
<1287798958-22549-1-git-send-email-stevenrwalter@gmail.com>
In-Reply-To
<1287737937.3785.15.camel@balanced-tree>
Specify a revision range to "merge" and manually set the svn:mergeinfo
property.
---
 t/t9157-git-svn-fetch-merge.sh |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/t/t9157-git-svn-fetch-merge.sh b/t/t9157-git-svn-fetch-merge.sh
index da582c5..424e1fa 100755
--- a/t/t9157-git-svn-fetch-merge.sh
+++ b/t/t9157-git-svn-fetch-merge.sh
@@ -25,15 +25,19 @@ test_expect_success 'initialize source svn repo' '
 		svn add baz &&
 		svn commit -m x &&
 		svn switch "$svnrepo"/trunk &&
-		svn merge "$svnrepo"/branches/branch1 &&
+		svn merge -r3:7 "$svnrepo"/branches/branch1 &&
+		svn propset svn:mergeinfo "/branches/branch1:4-7" . &&
 		svn commit -m "merge" &&
 		svn switch "$svnrepo"/branches/branch1 &&
 		svn commit -m x &&
 		svn switch "$svnrepo"/branches/branch2 &&
-		svn merge "$svnrepo"/branches/branch1 &&
+		svn merge -r3:8 "$svnrepo"/branches/branch1 &&
+		svn propset svn:mergeinfo "/branches/branch1:4-8" . &&
 		svn commit -m "merge branch1" &&
 		svn switch "$svnrepo"/trunk &&
-		svn merge "$svnrepo"/branches/branch2 &&
+		svn merge -r5:9 "$svnrepo"/branches/branch2 &&
+		svn propset svn:mergeinfo "/branches/branch1:4-8
+/branches/branch2:6-9" . &&
 		svn resolved baz &&
 		svn commit -m "merge branch2"
 	) &&
-- 
1.6.3.3
Previous: Anders KaseorgNext: Anders Kaseorg
Message 3 of 6 in “[ANNOUNCE] Git 1.7.3.2”
  1. Junio C HamanoOct 22, 2010
  2. Test failure with old svn [Re: [ANNOUNCE] Git 1.7.3.2]Anders Kaseorg, Oct 22, 2010
  3. t9157-git-svn-fetch-merge.sh: remove dependency on subversion 1.5Steven Walter, Oct 23, 2010
  4. Anders KaseorgNov 18, 2010
  5. Anders KaseorgNov 18, 2010
  6. Eric WongNov 25, 2010

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.