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

Re: How to bring different version of files in subversion

From: Ben Collins-Sussman <sussman_at_collab.net>
Date: 2004-07-08 21:27:51 CEST

On Thu, 2004-07-08 at 14:17, Metrri Jain wrote:

> I am trying to associate a message with each version,
> something that says that version 1.0.2 corresponds to
> revision 20.

That's the wrong way to do it. The repository's global revision number
is just a way of tracking the names of changesets that you commit. It
has *nothing* to do with the version of your software.

Consider: you might have 5 different projects in one repository.

Consider: the names of the global revisions might have been random
ascii strings.

To create "versions" of your software, you follow the same procedures
you would use with any SCM system: you create branches and tags, and
you define some sort of constant in your source code. Look at the way
Subversion itself does it, in svn_version.h. You give names to the
branches and tags that reflect the "version" of your project, like
"1.0-beta".

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 8 21:29:15 2004

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