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. **************************************************************************************