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

[PATCH 2/2] t9150,t9151: Add rewrite-root option to init

From
Tuomas Suutari <tuomas.suutari@gmail.com>
Date
Feb 24, 2010, 18:09 UTC
Message-ID
<1267034942-31581-2-git-send-email-tuomas.suutari@gmail.com>
In-Reply-To
<1267034942-31581-1-git-send-email-tuomas.suutari@gmail.com>

The rewrite-root option seems to be a bit problematic with merge detecting, so it's better to have a merge detecting test with it turned on.

Signed-off-by: Tuomas Suutari <tuomas.suutari@gmail.com>
---

This is mainly for supporting the first patch. Try applying this before the first patch to see the problem it addresses.

After this is applied, then there are no merge detecting tests without rewrite-root. Could this be a problem?

 t/t9150-svk-mergetickets.sh |    1 +
 t/t9151-svn-mergeinfo.sh    |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/t/t9150-svk-mergetickets.sh b/t/t9150-svk-mergetickets.sh
index 5358142..24c2421 100755
--- a/t/t9150-svk-mergetickets.sh
+++ b/t/t9150-svk-mergetickets.sh
@@ -11,6 +11,7 @@ test_expect_success 'load svk depot' "
 	svnadmin load -q '$rawsvnrepo' \
 	  < '$TEST_DIRECTORY/t9150/svk-merge.dump' &&
 	git svn init --minimize-url -R svkmerge \
+	  --rewrite-root=http://svn.example.org \
 	  -T trunk -b branches '$svnrepo' &&
 	git svn fetch --all
 	"
diff --git a/t/t9151-svn-mergeinfo.sh b/t/t9151-svn-mergeinfo.sh
index 3569c62..c415775 100755
--- a/t/t9151-svn-mergeinfo.sh
+++ b/t/t9151-svn-mergeinfo.sh
@@ -11,6 +11,7 @@ test_expect_success 'load svn dump' "
 	svnadmin load -q '$rawsvnrepo' \
 	  < '$TEST_DIRECTORY/t9151/svn-mergeinfo.dump' &&
 	git svn init --minimize-url -R svnmerge \
+	  --rewrite-root=http://svn.example.org \
 	  -T trunk -b branches '$svnrepo' &&
 	git svn fetch --all
 	"
-- 
1.7.0.2.ged48
Previous: Tuomas SuutariNext: Eric Wong
Message 2 of 7 in “git-svn: Fix merge detecting with rewrite-root”
  1. 1/2 git-svn: Fix merge detecting with rewrite-rootTuomas Suutari, Feb 24, 2010
  2. 2/2 t9150,t9151: Add rewrite-root option to initTuomas Suutari, Feb 24, 2010
  3. Eric WongFeb 26, 2010
  4. Tuomas SuutariMar 13, 2010
  5. Sam VilainMar 13, 2010
  6. Eric WongMar 13, 2010
  7. Junio C HamanoMar 13, 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.