Crushed by a giant packfile
Tom Widmer
tom.widmer at googlemail.com
Thu Nov 26 12:09:45 GMT 2009
Chris McCormick wrote:
> On Thu, Nov 26, 2009 at 02:59:35PM +1000, Ian Clatworthy wrote:
>> Chris McCormick wrote:
>>
>>> If you could point me to a tutorial or some documentation on how to do this, I
>>> would really appreciate it.
>> Very briefly:
>>
>> 1. bzr fast-export trunk > old.fi
>> 2. bzr fast-import-filter old.fi -x bad-file > new.fi
>> 3. bzr fast-import new.fi trunk.new
>>
>> See
>> http://doc.bazaar-vcs.org/plugins/en/fastimport-plugin.html#fast-import-filter
>
> Wonderful, thanks Ian.
>
> Is there some way I can see which revisions are involved in the packfile or
> does that make no sense? Is there some way to use bzr log to see how large a
> particular commit was? I've had a look at the man pages for log, log-format,
> and search, but I can't seem to find a way to work out the size of a particular
> commit.
You could branch rev 0 to a bare treeless branch, then pull one rev at a
time using a script until the size of the folder spikes.
e.g. something like
bzr branch -r 1 . ~/mytestrepo
cd ~/mytestrepo
for r in `bzr log --forward -n0 --line | grep -o "^[^n]*"` do;
bzr pull -r $r
check size of .bzr and break if > say 50MB
done;
Tom
More information about the bazaar
mailing list