@matheusbsbs / matheus-bagliano / commits / 490f49ea58
Fork 0

git-svn: remove optimized commit stuff for set-tree

I may resurrect it for dcommit at some point, but nobody really uses set-tree anymore and I don't feel like introducing more complexity into the code at this point. Signed-off-by: Eric Wong <normalperson@yhbt.net>

Eric Wong committed Feb 10, 2007 at 13:58 UTC 490f49ea5899b7aacfb82c0ed5639d722a56704a
1 file changed +2 -10
git-svn.perl
+2 -10
@@ -48,7 +48,6 @@ BEGIN {
48
49 my ($SVN);
50
51 -my $_optimize_commits = 1 unless $ENV{GIT_SVN_NO_OPTIMIZE_COMMITS};
51 $sha1 = qr/[a-f\d]{40}/;
52 $sha1_short = qr/[a-f\d]{4,40}/;
53 my ($_stdin, $_help, $_edit,
@@ -1384,15 +1383,8 @@ sub fetch {
1383
1384 sub set_tree_cb {
1385 my ($self, $log_entry, $tree, $rev, $date, $author) = @_;
1387 - # TODO: enable and test optimized commits:
1388 - if (0 && $rev == ($self->{last_rev} + 1)) {
1389 - $log_entry->{revision} = $rev;
1390 - $log_entry->{author} = $author;
1391 - $self->do_git_commit($log_entry, "$rev=$tree");
1392 - } else {
1393 - $self->{inject_parents} = { $rev => $tree };
1394 - $self->fetch(undef, undef);
1395 - }
1386 + $self->{inject_parents} = { $rev => $tree };
1387 + $self->fetch(undef, undef);
1388 }
1389
1390 sub set_tree {