@matheusbsbs / matheus-bagliano / commits / 90c1b15da3
Fork 0

git-svn: just use Digest::MD5 instead of requiring it

Historically, git-svn did not always use Digest::MD5 because it did not use the SVN::Delta::Editor interfaces. Nowadays it does, and the requires make strace more noisy. Signed-off-by: Eric Wong <normalperson@yhbt.net>

Eric Wong committed Jan 29, 2007 at 16:27 UTC 90c1b15da303fa40457e0a9e5c11a57adbfa1879
1 file changed +2 -2
git-svn.perl
+2 -2
@@ -1577,6 +1577,7 @@ use strict;
1577 use warnings;
1578 use Carp qw/croak/;
1579 use IO::File qw//;
1580 +use Digest::MD5;
1581
1582 # file baton members: path, mode_a, mode_b, pool, fh, blob, base
1583 sub new {
@@ -1590,7 +1591,6 @@ sub new {
1591 $self->{absent_dir} = {};
1592 $self->{absent_file} = {};
1593 $self->{gii} = $git_svn->tmp_index_do(sub { Git::IndexInfo->new });
1593 - require Digest::MD5;
1594 $self;
1595 }
1596
@@ -1798,6 +1798,7 @@ use strict;
1798 use warnings;
1799 use Carp qw/croak/;
1800 use IO::File;
1801 +use Digest::MD5;
1802
1803 sub new {
1804 my ($class, $opts) = @_;
@@ -1826,7 +1827,6 @@ sub new {
1827 $self->{rm} = { };
1828 $self->{path_prefix} = length $self->{svn_path} ?
1829 "$self->{svn_path}/" : '';
1829 - require Digest::MD5;
1830 return $self;
1831 }
1832