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

Re: Subversion and "Configuration Management"

From: Brad Appleton <brad_at_bradapp.net>
Date: 2004-04-02 00:07:54 CEST

On Thu, Apr 01, 2004 at 04:45:43PM -0500, Gary Feldman wrote:
> ----- Original Message -----
> From: "Brad Appleton" <brad@bradapp.net>
> ... excellent write-up on a way to do promotion elided
> > Then an "svn log" command on any given promotion branch should
> > be able to give you the list of all ChangeTasks that have
> > reached that promotion-level.
>
> Given this model, how would one determine the current state of a given task?
> If I'm following this correctly, the only set of information that
> corresponds to the task is the original task branch. Would one have to
> query the property name on each of the state branches?

Very good question! At first glance, I was thinking as you did
that I would have to query against all the branches. Then I
thought of another possibility - but it would require additional
tooling/scripting ...

When a change-task is ported from branch to branch, the
ChangeTask property is associated with the revision committed to
that promotion branch. If this were automated by a "promotion"
script, then at the same time, the script could also "bump
up" the PromotionLevel attribute of the last global revision
associated with the task-branch named after that ChangeTask

So to answer the question:
- what tasks have been promoted to this level?
    -- you would query (svn log) the corresponding promotion branch
       looking at the ChangeTask Property

- what is the promotion level of this task?
    -- you would query the LATEST on the Task branch
       looking at the PromotionLevel property

I'm not an SVN expert - so I'm not positive about all this -
but I think it could work.

Note: this means you would have to keep those task-branches around
(some like to delete them after committing them).

-- 
Brad Appleton <brad@bradapp.net> www.bradapp.net
  Software CM Patterns (www.scmpatterns.com)
   Effective Teamwork, Practical Integration
"And miles to go before I sleep." -- Robert Frost
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Apr 2 00:08:57 2004

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.