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

Re: Current Updated Revision Number

From: John Peacock <jpeacock_at_rowman.com>
Date: 2003-09-05 17:50:19 CEST

Peter Childs wrote:

> How do I get last revision number for my repository. The keywords
> only seam to handle when that file was last changed. What I would like to
> do is see the revision number on the repository and then use it in my
> code to see who which version a user is using.
> So I can then commit, compile, and have my source code
> auto-versioned...

As long as you have only one project per repository, this will do more or less
what you intend. However, I want to remind you that the last revision number is
a global repository value. If you have 10 projects in a repository, the last
revision number is only meaningfully related to the last commit on any of those
projects. The SVN revision number is only a monotonically increasing number
associated with the number of commits made to a repository. In this sense, the
last revision number is even less suitable to be used as a file or project
VERSION than the CVS revision number used to be.

I am working on a Perl solution which would include a script (called 'release'),
which would update the master $VERSION for a given project (in whatever file
that may be located), then optionally test, tag, and build a tarfile. I'm
having a severe lack of tuits recently, so it is merely pencil scratches on the
back of a page right now, but I do know how I am going to do it.

John

-- 
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Sep 5 17:51:13 2003

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.