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

Re: Retrieving Revision Number During an svn mkdir

From: Ryan Schmidt <subversion-2009b_at_ryandesign.com>
Date: Wed, 30 Sep 2009 16:52:29 -0500

On Sep 30, 2009, at 13:00, Moninski, Michael wrote:

> 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?

No, it is not possible.

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

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

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