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

Re: [PATCH 0/2] [RFT] git-svn: more efficient revision -> commit mapping

From
Sam Vilain <sam@vilain.net>
Date
Dec 13, 2007, 02:42 UTC
Message-ID
<47609BF9.4030005@vilain.net>
In-Reply-To
<20071212180510.GB18980@untitled>
Eric Wong wrote:
> Sam (or anybody else using useSvmProps:
> 
>   Do you have any feedback with svmProps enabled?

3682645 120 -rw-rw-r-- 1 samv samv 121893 Dec 13 14:05 tags/debian_version_1_2_0beta1@2972/.rev_db.d29f7b36-84ff-0310-85ce-ba787dbd31ca

 =>

-3683050 4 -rw-rw-r-- 1 samv samv 48 Dec 13 14:26 ./tags/debian_version_1_2_0beta1@2972/.rev_map.d29f7b36-84ff-0310-85ce-ba787dbd31ca

git-log --all | grep git-svn | tail -3
    git-svn-id:
file:///home/samv/.svk/local/mirror/fai/branches/source-dist@2971
d29f7b36-84ff-0310-85ce-ba787dbd31ca
    git-svn-id: svn+ssh://svn.debian.org/svn/fai/trunk@2
ba5ec265-b0fb-0310-8e1a-cf9e4c2b1591
    git-svn-id: svn+ssh://svn.debian.org/svn/fai/trunk@1
ba5ec265-b0fb-0310-8e1a-cf9e4c2b1591
So, the remapping is still working fine.

The one that failed there is not a new bug. Here's the fix anyway though :-)

Subject: [PATCH] git-svn: fix --use-svm-props and --follow-parent

If, when using --follow-parent, it finds that the parent is an SVM path, *and* the SVM path is not at the root of the corresponding SVN repository (the usual case when using SVK), then the logic in Git::SVN::ra will not find the correct source repository. This is because the freshly created RA object is missing the path. So, set this after creation.

Signed-off-by: Sam Vilain <sam.vilain@catalyst.net.nz>
---
 git-svn.perl |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/git-svn.perl b/git-svn.perl
index 54d7844..3e5fd82 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -2189,6 +2189,7 @@ sub find_parent_branch {
 		$ref_id .= '-' while find_ref($ref_id);
 		print STDERR "Initializing parent: $ref_id\n";
 		$gs = Git::SVN->init($new_url, '', $ref_id, $ref_id, 1);
+		$gs->{path} = $branch_from;
 	}
 	my ($r0, $parent) = $gs->find_rev_before($r, 1);
 	if (!defined $r0 || !defined $parent) {
-- 
1.5.3.5
Previous: Eric WongNext: Eric Wong
Message 7 of 8 in “[RFT] git-svn: more efficient revision -> commit mapping”
  1. 0/2 [RFT] git-svn: more efficient revision -> commit mappingEric Wong, Dec 9, 2007
  2. 1/2 git-svn: replace .rev_db with a more space-efficient .rev_map formatEric Wong, Dec 9, 2007
  3. 2/2 git-svn: reinstate old rev_db optimization in new rev_mapEric Wong, Dec 9, 2007
  4. Harvey HarrisonDec 9, 2007
  5. Harvey HarrisonDec 10, 2007
  6. Eric WongDec 12, 2007
  7. Sam VilainDec 13, 2007
  8. Eric WongDec 13, 2007

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.