Branch size dramatically increased
I'm the maintainer of chive, a open source mysql management solution, available here: http://
Something strange happend with our branch size: It dramatically increased from 7,6MB (lp:chive/1.0) to 67MB (lp:chive).
There are only a handful commits and merges between these two branches, so not something notably.
You can verify this by yourself:
1) bzr checkout lp:chive/1.0 => du -sh .bzr => 7,6MB
2) bzr checkout lp:chive => d -sh .bzr => 67MB
Any ideas what may caused this drastic increase of storage size?
Is it possible to somehow analyize the .pack files in the .bzr/repository directory?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Bazaar Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jelmer Vernooij
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 4/25/2012 9:25 PM, David Roth wrote:
> New question #194724 on Bazaar:
> https:/
>
> I'm the maintainer of chive, a open source mysql management
> solution, available here: http://
>
> Something strange happend with our branch size: It dramatically
> increased from 7,6MB (lp:chive/1.0) to 67MB (lp:chive). There are
> only a handful commits and merges between these two branches, so
> not something notably.
>
> You can verify this by yourself:
>
> 1) bzr checkout lp:chive/1.0 => du -sh .bzr => 7,6MB 2) bzr
> checkout lp:chive => d -sh .bzr => 67MB
>
> Any ideas what may caused this drastic increase of storage size? Is
> it possible to somehow analyize the .pack files in the
> .bzr/repository directory?
>
I can confirm the size difference. The specific revision which bloated
was rev 428.
Looking closely at the below log, I do see this comment:
421.1.16 mburtscher 2012-03-20
M pharExport.php
I wonder if there was just a bunch of churn on pharExport.php? Or
maybe on an associated file, that then got reverted back and forth a
bit...
'bzr log -r 427..428 -v' shows this:
428 David Roth 2012-04-14 [merge]
Merged from lp:~mburtscher/chive/phar
A pharExport.php
A protected/
A protected/
A protected/
A protected/
A protected/
M archiveExport.sh
M images/
M images/
M images/
M index.php
M protected/
M protected/
421.1.1 mburtscher 2012-03-11
All modifications needed to run chive in a single-file
phar installation... roXx!!!
A chive.phar
A protected/
A protected/
A stub.php
M index.php
421.1.2 mburtscher 2012-03-11
A pharExport.sh
M chive.phar
421.1.3 mburtscher 2012-03-12
D chive.phar
D stub.php
A chive.phar.php
M index.php
M pharExport.sh
M protected/
421.1.4 mburtscher 2012-03-12
M chive.phar.php
M pharExport.sh
421.1.5 mburtscher 2012-03-19
A protected/
A protected/
A protected/
M chive.phar.php
M index.php
M pharExport.sh
M protected/
M protected/
421.1.6 mburtscher 2012-03-19
M index.php
M protected/
M yii/base/
M yii/base/
M yii/cli/
M yii/cli/
M yii/cli/
M yii/console/
M yii/logging/
M yii/web/
M yii/web/
M yii/web/
M yii/web/
M yii/web/
M yii/web/
421.1.7 mburtscher 2012-03-19
D pharExport.sh
A pharExport.php
M archiveExport.sh
421.1.8 mburtscher 2012-03-19
D chive.phar.php
M archiveExport.sh
M pharExport.php
421.1.9 mburtscher 2012-03-19
M archiveExport.sh
M pharExport.php
421.1.10 mburtscher 2012-03-19
Fix + fast export
421.1.11 mburtscher 2012-03-19
M archiveExport.sh
M index.php
M pharExport.php
421.1.12 mburtscher 2012-03-20
M pharExport.php
M protected/
421.1.13 mburtscher 2012-03-20
M index.php
M pharExport.php
421.1.14 mburtscher 2012-03-20
...
M index.php
421.1.15 mburtscher 2012-03-20
M archiveExport.sh
M pharExport.php
M protected/
M protected/
421.1.16 mburtscher 2012-03-20
M pharExport.php
421.1.17 mburtscher 2012-03-20 [merge]
M protected/
M protected/
M protected/
M protected/
M protected/
421.1.18 mburtscher 2012-03-22
Get rid of realpath_chive() by replacing realpath() on
phar creation.
M index.php
M pharExport.php
M yii/base/
M yii/base/
M yii/cli/
M yii/cli/
M yii/cli/
M yii/console/
M yii/logging/
M yii/web/
M yii/web/
M yii/web/
M yii/web/
M yii/web/
M yii/web/
421.1.19 mburtscher 2012-03-22
M protected/
M protected/
421.1.20 mburtscher 2012-03-22
M pharExport.php
421.1.21 mburtscher 2012-03-22 [merge]
M pharExport.php
421.2.1 mburtscher 2012-03-21
421.1.22 mburtscher 2012-03-22
Add license text
M protected/
M protected/
421.1.23 mburtscher 2012-03-22
M protected/
421.1.24 mburtscher 2012-04-05 [merge]
Use Google Closure for phar creation
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D js/components/
D protected/
D protected/
D protected/
D themes/
A js/ace/
A js/ace/ace.js
A js/ace/mode-sql.js
A js/ace/
A protected/
M archiveExport.sh
M index.php
M js/chive.js
M js/views/
M pharExport.php
M protected/
M protected/
M protected/
M protected/
M protected/
M protected/
M protected/
M protected/
M protected/
M protected/
M protected/
M protected/
M protected/
M protected/
M protected/
M protected/
M protected/
M themes/
M yii/yii.php
421.1.25 mburtscher 2012-04-05
M index.php
M pharExport.php
421.1.26 mburtscher 2012-04-05
M archiveExport.sh
M pharExport.php
M protected/
421.1.27 mburtscher 2012-04-05
M pharExport.php
M protected/
421.1.28 mburtscher 2012-04-05
M pharExport.php
M protected/
421.1.29 mburtscher 2012-04-05
M protected/
421.1.30 mburtscher 2012-04-05
M images/
M images/
M images/
421.1.31 mburtscher 2012-04-05
M pharExport.php
421.1.32 mburtscher 2012-04-06
M archiveExport.sh
I don't know specifically why. I'll note that if I manually run 'bzr
pack --clean-
My best guess is that you have some big files that changed a few
times, and get stored a bit loose without repack.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAk+
cTYAoLLcCcqO6/
=ysyj
-----END PGP SIGNATURE-----
Revision history for this message
|
#2 |
Hi David,
On Wed, Apr 25, 2012 at 07:25:44PM -0000, David Roth wrote:
> New question #194724 on Bazaar:
> https:/
> I'm the maintainer of chive, a open source mysql management solution, available here: http://
> Something strange happend with our branch size: It dramatically increased from 7,6MB (lp:chive/1.0) to 67MB (lp:chive).
> There are only a handful commits and merges between these two branches, so not something notably.
> You can verify this by yourself:
> 1) bzr checkout lp:chive/1.0 => du -sh .bzr => 7,6MB
> 2) bzr checkout lp:chive => d -sh .bzr => 67MB
> Any ideas what may caused this drastic increase of storage size?
> Is it possible to somehow analyize the .pack files in the .bzr/repository directory?
I just had a quick look at lp:chive.
This is happening because of revision 421.1.1 by mburtscher, which
adds a file "chive.phar" that is 19Mb, later updated to another file
that is 28Mb, etc etc.
Cheers,
Jelmer
Revision history for this message
|
#3 |
Hi Jelmer,
thanks! Aahh I should have seen this! ;)
It was also my first guess but I did not see it the first time :D (and I did not expect it either) ...
I guess the only way to get rid of this huge file-history is to manually revert all changes to the revision before the merge from chive-phar happened, and then checkin all files again, but without a real merge and without the blobs?!
Or is there a way to only remove certain files in the history, but without loosing all other changes/
Cheers,
David
Revision history for this message
|
#4 |
Hi David,
On Thu, Apr 26, 2012 at 06:10:52AM -0000, David Roth wrote:
> thanks! Aahh I should have seen this! ;)
> It was also my first guess but I did not see it the first time :D (and I did not expect it either) ...
>
> I guess the only way to get rid of this huge file-history is to manually
> revert all changes to the revision before the merge from chive-phar
> happened, and then checkin all files again, but without a real merge and
> without the blobs?!
Yes.
> Or is there a way to only remove certain files in the history, but
> without loosing all other changes/
You might be able to use fastexport to filter out the problematic
file. I don't have any experience with this myself though. Either way,
this will involve changing your branch in a way that will break "bzr
pull".
Cheers,
Jelmer
Revision history for this message
|
#5 |
Ok, thanks for your feedback.
cheers,
david