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

Re: One repository / Many projects : How to differenciate revisions ?

From: Bradford Smith <bradford.carl.smith_at_gmail.com>
Date: 2007-03-16 13:44:35 CET

> > On Mar 13, 2007, at 03:12, Nicolas CHARLOT wrote:
> >
> >>> At a same time, we are working on many projects. We've setup a
> >>> repository and want to use it to handle all our projects. The
> >>> recommended structure is to create a root folder for each project.
> >>> That's OK. The issue is that we have a global counter for the
> >>> repository. Is Subversion able to manage revisions by folder ?
> >>>
> >>> If not, what do U advise me ?

You can use the "Last Changed Rev" recorded for the trunk/branch of the
project you are interested in. For directories, this number is updated
whenever any thing under the directory tree is modified, no matter how far
down the tree the change was made. So, if you have this layout:

/project1/trunk/
/project2/trunk/

And you change, say, /project1/trunk/foo/bar/baz.c, the "Last Changed Rev"
for /project1/trunk will be updated to the latest revision number, but the
"Last Changed Rev" for /project2/trunk will be left unchanged. Be aware,
though, that you should always check this number using a repository URL,
because the value stored in the working directory is not updated when you
commit changes unless you added/moved/removed something in the directory
itself. So for example:

bsmith_at_bsmith-laptop:~$ svn info file:///home/bsmith/svn/APACHE3/trunk
Path: trunk
URL: file:///home/bsmith/svn/APACHE3/trunk
Repository Root: file:///home/bsmith/svn/APACHE3
Repository UUID: 6434ac76-2f2b-0410-b569-d6c27546e744
Revision: 2
Node Kind: directory
Last Changed Author: bsmith
Last Changed Rev: 2
Last Changed Date: 2007-03-08 15:46:05 -0500 (Thu, 08 Mar 2007)

HTH,

Bradford C. Smith
Received on Fri Mar 16 13:45:02 2007

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.