How to decrease .svn folder size?

6,868 views
Skip to first unread message

Alexey

unread,
Oct 14, 2011, 6:24:27 AM10/14/11
to us...@tortoisesvn.tigris.org
Hi everyone again. As far as I know svn holds copies of versioned files in .svn folders. It is a good idea for text files cause they can be reverted fast without server interaction. Correct me if I am wrong. But our repo contains many big binary files that I never touch at all (zip files with textures updated by artists). And because I've swithed to SSD not long ago this now really matters me. Is there any possibility not to store copies for files more than X Mb in size? It will save ~10Gb for me.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2855168

To unsubscribe from this discussion, e-mail: [users-un...@tortoisesvn.tigris.org].

Ulrich Eckhardt

unread,
Oct 14, 2011, 6:38:24 AM10/14/11
to us...@tortoisesvn.tigris.org
Am 14.10.2011 12:24, schrieb Alexey:
> [...] our repo contains many big binary files that I never touch at

> all (zip files with textures updated by artists). And because I've
> swithed to SSD not long ago this now really matters me.

Don't check out the whole repository but only the parts you are working
on. You could also consider using "export" instead of "checkout" for
read-only data.


> Is there any possibility not to store copies for files more than X
> Mb in size? It will save ~10Gb for me.

AFAIK, no. In any case, you would sacrifice repository interaction for
those files, because generating diffs requires a clean copy, so
exporting might really be an alternative.


Uli
**************************************************************************************
Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2855170

Simon Large

unread,
Oct 14, 2011, 6:40:48 AM10/14/11
to us...@tortoisesvn.tigris.org
On 14 October 2011 11:24, Alexey <i10...@gmail.com> wrote:
> Hi everyone again. As far as I know svn holds copies of versioned files in .svn folders. It is a good idea for text files cause they can be reverted fast without server interaction. Correct me if I am wrong. But our repo contains many big binary files that I never touch at all (zip files with textures updated by artists). And because I've swithed to SSD not long ago this now really matters me. Is there any possibility not to store copies for files more than X Mb in size? It will save ~10Gb for me.

That would be a change to core subversion functionality so you have to
ask for that feature on the subversion users list, not this one. I
believe such a feature has been mooted and may even be in development,
but you won't see it until at least subversion 1.8. In the meantime
you could use sparse checkouts as Uli suggests.

Simon

--
:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2855171

Jean-Marc van Leerdam

unread,
Oct 14, 2011, 6:42:39 AM10/14/11
to us...@tortoisesvn.tigris.org
Hi,

On 14 October 2011 12:24, Alexey <i10...@gmail.com> wrote:
Hi everyone again. As far as I know svn holds copies of versioned files in .svn folders. It is a good idea for text files cause they can be reverted fast without server interaction. Correct me if I am wrong. But our repo contains many big binary files that I never touch at all (zip files with textures updated by artists). And because I've swithed to SSD not long ago this now really matters me. Is there any possibility not to store copies for files more than X Mb in size? It will save ~10Gb for me.

 
Take a look into sparse checkouts, selecting only the parts of the repository that you need.

--
Regards,

Jean-Marc
--
.       ___                                                   
.  @@  // \\      "De Chelonian Mobile"
. (_,\/ \_/ \     TortoiseSVN
.   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
.   /_/   \_\     http://tortoisesvn.net

Alexey

unread,
Oct 14, 2011, 7:57:30 AM10/14/11
to us...@tortoisesvn.tigris.org
> AFAIK, no. In any case, you would sacrifice repository interaction for
> those files, because generating diffs requires a clean copy, so
> exporting might really be an alternative.
But diffs for binary files can not be generated anyway.
Ok. I'll try export.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2855199

Ulrich Eckhardt

unread,
Oct 14, 2011, 8:00:00 AM10/14/11
to us...@tortoisesvn.tigris.org, Alexey
Am 14.10.2011 13:57, schrieb Alexey:
>> AFAIK, no. In any case, you would sacrifice repository interaction for
>> those files, because generating diffs requires a clean copy, so
>> exporting might really be an alternative.
> But diffs for binary files can not be generated anyway.

I didn't mean textual patch files but diffs in a more general way.
Subversion uses xdelta, if I remember correctly, and it doesn't care
what the content of the files are.

Uli

**************************************************************************************
Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2855200

Reply all
Reply to author
Forward
0 new messages