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

[PATCH 4/5] git-svn: collect revision properties when fetching

From
Sam Vilain <sam@vilain.net>
Date
Dec 5, 2006, 05:17 UTC
Message-ID
<20061205051738.16552.36012.stgit@localhost>
In-Reply-To
<20061205051738.16552.8987.stgit@localhost>
From: Sam Vilain <sam@vilain.net>

Perhaps there is information in the "revision properties" (unversioned metadata associated with commits) that will affect the way that we save the revision. Collect them. --- Sorry for the long lines.

 git-svn.perl |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/git-svn.perl b/git-svn.perl
index 800c579..70c34b0 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -441,12 +441,16 @@ sub fetch_lib {
 					if ($last_commit) {
 						$log_msg = libsvn_fetch(
 							$last_commit, @_);
+						$log_msg->{revprops}
+							= $SVN->rev_proplist($log_msg->{revision});
 						$last_commit = git_commit(
 							$log_msg,
 							$last_commit,
 							@parents);
 					} else {
 						$log_msg = libsvn_new_tree(@_);
+						$log_msg->{revprops}
+							= $SVN->rev_proplist($log_msg->{revision});
 						$last_commit = git_commit(
 							$log_msg, @parents);
 					}
Previous: Sam VilainNext: Sam Vilain
Message 2 of 11 in “git-svn: make test for SVK mirror path import”
  1. 1/5 git-svn: make test for SVK mirror path importSam Vilain, Dec 5, 2006
  2. 4/5 git-svn: collect revision properties when fetchingSam Vilain, Dec 5, 2006
  3. 5/5 git-svn: re-map repository URLs and UUIDs on SVK mirror pathsSam Vilain, Dec 5, 2006
  4. Eric WongDec 5, 2006
  5. Sam VilainDec 7, 2006
  6. Eric WongDec 7, 2006
  7. git-svn: use do_switch for --follow-parent if the SVN library supports itEric Wong, Dec 8, 2006
  8. 2/5 git-svn: let libsvn_ls_fullurl return properties tooSam Vilain, Dec 5, 2006
  9. 3/5 git-svn: collect SVK source URL on mirror pathsSam Vilain, Dec 5, 2006
  10. Eric WongDec 5, 2006
  11. Jakub NarebskiDec 5, 2006

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.