* [PATCH] git-svn: unlink internal index files after operations
@ 2007-12-13 16:27 Eric Wong
2007-12-13 20:27 ` Karl Hasselström
0 siblings, 1 reply; 3+ messages in thread
From: Eric Wong @ 2007-12-13 16:27 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
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>
---
git-svn.perl | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/git-svn.perl b/git-svn.perl
index 54d7844..fde39e2 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -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 {
--
Eric Wong
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] git-svn: unlink internal index files after operations
2007-12-13 16:27 [PATCH] git-svn: unlink internal index files after operations Eric Wong
@ 2007-12-13 20:27 ` Karl Hasselström
2007-12-14 8:29 ` Eric Wong
0 siblings, 1 reply; 3+ messages in thread
From: Karl Hasselström @ 2007-12-13 20:27 UTC (permalink / raw)
To: Eric Wong; +Cc: Junio C Hamano, git
On 2007-12-13 08:27:34 -0800, Eric Wong wrote:
> 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.
Excellent!
For existing repos, I assume the correct thing to do is to just blast
all the existing index files manually?
--
Karl Hasselström, kha@treskal.com
www.treskal.com/kalle
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] git-svn: unlink internal index files after operations
2007-12-13 20:27 ` Karl Hasselström
@ 2007-12-14 8:29 ` Eric Wong
0 siblings, 0 replies; 3+ messages in thread
From: Eric Wong @ 2007-12-14 8:29 UTC (permalink / raw)
To: Karl Hasselström; +Cc: Junio C Hamano, git
Karl Hasselström <kha@treskal.com> wrote:
> On 2007-12-13 08:27:34 -0800, Eric Wong wrote:
>
> > 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.
>
> Excellent!
>
> For existing repos, I assume the correct thing to do is to just blast
> all the existing index files manually?
Yes. index files inside $GIT_DIR/svn have always been safely deletable
(except while a git-svn is actually running :).
I'll probably work on an automated full migration strategy at some
point (handling rev_db => rev_map, mainly) when I have time.
--
Eric Wong
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-12-14 8:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-13 16:27 [PATCH] git-svn: unlink internal index files after operations Eric Wong
2007-12-13 20:27 ` Karl Hasselström
2007-12-14 8:29 ` Eric Wong
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).