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

Retrieving Revision Number During an svn mkdir

From: Moninski, Michael <MMoninski_at_sandc.com>
Date: Wed, 30 Sep 2009 13:00:28 -0500

Hello -

In order to make code release sets unique we tend name our folders with the date they are created. However, it is possible that two users may try to create a release folder on the exact same date in the exact same location within a repository. I certainly could require release folders to have more resolution than just the date, but it doesn't complete eliminate this possible scenario. To ensure a unique folder name I would like to include the revision of the repository associated with the folders creation. So if the repository is say 1234 and I do a svn mkdir the folder name of the folder created would include 1235 at the end, since that would be the revision of the repository the folder is created in at.

Is it possible to know the next repository number at commit time and include it in a folder name?

Finding the latest revision number of the repository and adding one is insufficient because between getting the number and then using it someone could have already check-in a change.

Thank you for your help.

- Mike

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2402205

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-09-30 20:02:25 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.