@matheusbsbs / matheus-bagliano / commits / 83e9940a5e
Fork 0

git-svn: add a message encouraging use of SVN::* libraries

I'm using svn 1.4.0-4 in Debian unstable and apparently there's a regression on the SVN side that prevents a symlink from becoming a regular file (which git supports, of course). It's not a noticeable regression for most people, but this broke the full-svn-tests target in t/Makefile for me. The SVN::* Perl libraries seem to have matured and improved over the past year, and git-svn has supported them for several months now, so with that I encourage all users to start using the SVN::* Perl libraries with git-svn. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>

Eric Wong committed Oct 11, 2006 at 18:19 UTC 83e9940a5ef79cedc36a24a4a89d097abf1b28c7
1 file changed +14
git-svn.perl
+14
@@ -40,8 +40,22 @@ memoize('cmt_metadata');
40 memoize('get_commit_time');
41
42 my ($SVN_PATH, $SVN, $SVN_LOG, $_use_lib);
43 +
44 +sub nag_lib {
45 + print STDERR <<EOF;
46 +! Please consider installing the SVN Perl libraries (version 1.1.0 or
47 +! newer). You will generally get better performance and fewer bugs,
48 +! especially if you:
49 +! 1) have a case-insensitive filesystem
50 +! 2) replace symlinks with files (and vice-versa) in commits
51 +
52 +EOF
53 +}
54 +
55 $_use_lib = 1 unless $ENV{GIT_SVN_NO_LIB};
56 libsvn_load();
57 +nag_lib() unless $_use_lib;
58 +
59 my $_optimize_commits = 1 unless $ENV{GIT_SVN_NO_OPTIMIZE_COMMITS};
60 my $sha1 = qr/[a-f\d]{40}/;
61 my $sha1_short = qr/[a-f\d]{4,40}/;