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

[PATCH] git-svn: use ~/.subversion config files when using SVN:: libraries

From
EWEric Wong <normalperson@yhbt.net>
Date
Nov 27, 2006, 21:20 UTC
Message-ID
<11646624532615-git-send-email-normalperson@yhbt.net>

This allows users to use HTTP proxy information (among other settings) from ~/.subversion/servers and ~/.subversion/config

--config-dir (as before) may be passed to git-svn to override the default choice of '~/.subversion' for the configuration directory.

Thanks to tko on #git for pointing this out.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
---
 git-svn.perl |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/git-svn.perl b/git-svn.perl
index de4e74a..d5d9c49 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -2822,7 +2822,9 @@ sub libsvn_connect {
 	    SVN::Client::get_username_prompt_provider(
 	      \&_username_prompt, 2),
 	  ]);
+	my $config = SVN::Core::config_get_config($_config_dir);
 	my $ra = SVN::Ra->new(url => $url, auth => $baton,
+	                      config => $config,
 	                      pool => SVN::Pool->new,
 	                      auth_provider_callbacks => $callbacks);
 	$ra->{svn_path} = $url;
@@ -2834,8 +2836,8 @@ sub libsvn_connect {
 
 sub libsvn_dup_ra {
 	my ($ra) = @_;
-	SVN::Ra->new(map { $_ => $ra->{$_} }
-	             qw/url auth auth_provider_callbacks repos_root svn_path/);
+	SVN::Ra->new(map { $_ => $ra->{$_} } qw/config url
+	             auth auth_provider_callbacks repos_root svn_path/);
 }
 
 sub libsvn_get_file {
-- 
1.4.4.1.g36f2
Message 1 of 1 in “git-svn: use ~/.subversion config files when using SVN:: libraries”
  1. git-svn: use ~/.subversion config files when using SVN:: librariesEric Wong, Nov 27, 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.