[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: SVN - restriction to checkout only the latest version

From: Ulrich Eckhardt <ulrich.eckhardt_at_dominolaser.com>
Date: Mon, 23 May 2011 17:12:59 +0200

On Monday 23 May 2011, [radoo] wrote:
> I have a question whether subversion has possibility to allow checkout
> only the latest version of the repository.

No. Let's assume that it could, you could still check out a recent version and
then update to the earlier version. Now, if you would disallow updating to an
earlier version, too, by simply not giving out anything but the most recent
data, you also couldn't update, since that just passes the changes relative to
the WC's BASE revision. So this isn't just a missing feature but rather a
fundamental thing.

> My idea is (due to security) to allow only access only to the latest
> revision of the file stored in subversion repository.

I'm not sure what you would achieve with that or how that is related to
"security". If you elaborated on that, maybe people could suggest a different
approach?

> Or is there an option to set which would tell to keep only the latest
> version or last 10 versions?

Neither. This is also a fundamental design choice that no data is ever
discarded. Of course, with raw repository access you still could erase things
from a repository, but this isn't the "normal" operation mode.

If you want, you could install a post-commit script that takes some source
code and publishes it via FTP/HTTP. You could then immediately remove old
versions when a new version is available. However, this basically boils down
to blocking all repository access and doing the distribution/publishing with
something else, not with Subversion.

Cheers!

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.
**************************************************************************************
Received on 2011-05-23 18:09:29 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.