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

Re: Maintaing separate revision number for each project in repository

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Thu, 3 Jul 2008 01:45:53 -0500

On Jul 3, 2008, at 01:28, Sathishkumar.P wrote:

> I am new to SVN server. I need to maintain a separate revision
> number for each project in the repository instead of having the
> global revision number.

That's not how revision numbers work in Subversion. A revision number
is global for a repository, and it is simply the number of changes
that have been made to a repository, nothing more.

> For example,
> we have 3 projects in the repository the revision number should
> look like this when importing each project and it increments
> separately for each project while commiting that particular project
>
> calc/ ------------------->revision number 0.1.0
> trunk/
> braches/
> tags/
>
> utilities/ ------------------->revision number 0.1.0
> trunk/
> braches/
> tags/
>
> paint/ ------------------->revision number 0.1.0
> trunk/
> braches/
> tags/
>
> Please let me know how to do this...
> I googled for the answer but i didnt get any proper response...

A revision number in a Subversion repository is not a dotted number
like that (and like in CVS), but a monotonically increasing integer.

If you want each project to have its own revision numbers, you must
put each project in its own repository. But before you do that, I
would seriously ask yourself why you care what the revision number
is. It's an internal Subversion mechanism for storing your changes,
which happens to be exposed at some points, but it really shouldn't
matter to you what format Subversion's revision numbers take. Any
publicly-facing version numbers for your project should be separate
from the revision number and invented by you, for example in the
names of your tags and branches.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-07-03 08:46:20 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.