diff options
author | Eric Wong <normalperson@yhbt.net> | 2007-01-29 16:27:08 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2007-02-23 00:57:10 -0800 |
commit | 90c1b15da303fa40457e0a9e5c11a57adbfa1879 (patch) | |
tree | 53fc6e819eb50d599b00aa7a6c392d2874b10f59 | |
parent | 24e22aa8a5762b11a8025c6ad82c945828667d0f (diff) | |
download | git-90c1b15da303fa40457e0a9e5c11a57adbfa1879.tar.gz |
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>
-rwxr-xr-x | git-svn.perl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git-svn.perl b/git-svn.perl index 20c6fc768b..e387504b88 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -1577,6 +1577,7 @@ use strict; use warnings; use Carp qw/croak/; use IO::File qw//; +use Digest::MD5; # file baton members: path, mode_a, mode_b, pool, fh, blob, base sub new { @@ -1590,7 +1591,6 @@ sub new { $self->{absent_dir} = {}; $self->{absent_file} = {}; $self->{gii} = $git_svn->tmp_index_do(sub { Git::IndexInfo->new }); - require Digest::MD5; $self; } @@ -1798,6 +1798,7 @@ use strict; use warnings; use Carp qw/croak/; use IO::File; +use Digest::MD5; sub new { my ($class, $opts) = @_; @@ -1826,7 +1827,6 @@ sub new { $self->{rm} = { }; $self->{path_prefix} = length $self->{svn_path} ? "$self->{svn_path}/" : ''; - require Digest::MD5; return $self; } |