git-svn: unlink internal index files after operations
authorEric Wong <normalperson@yhbt.net>
Thu, 13 Dec 2007 16:27:34 +0000 (08:27 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 13 Dec 2007 17:54:45 +0000 (09:54 -0800)
Being git, we can generate these very quickly on the fly as
needed, so there's no point in wasting space for these things
for large projects.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-svn.perl

index 34c5e3d2e4246aeed42d1be89f86c3c20839d509..3aa7f8cb408402305df316d2ff90b69a3267c5a0 100755 (executable)
@@ -396,6 +396,7 @@ sub cmd_set_tree {
        }
        $gs->set_tree($_) foreach @revs;
        print "Done committing ",scalar @revs," revisions to SVN\n";
+       unlink $gs->{index};
 }
 
 sub cmd_dcommit {
@@ -514,6 +515,7 @@ sub cmd_dcommit {
                        $last_rev = $cmt_rev;
                }
        }
+       unlink $gs->{index};
 }
 
 sub cmd_find_rev {
@@ -1374,6 +1376,7 @@ sub fetch_all {
 
        ($base, $head) = parse_revision_argument($base, $head);
        $ra->gs_fetch_loop_common($base, $head, \@gs, \@globs);
+       unlink $_->{index} foreach @gs;
 }
 
 sub read_all_remotes {