P2l
P2l

Reputation: 915

How do I identify the first branch which contains a revisions from the trunk?

Can anyone suggest a way of achieving the following:

1) I am examining a particular revision/svn commit in the trunk. 2) I want to find out which release of the software this first went into?

So for example, a user is querying a bug which I know has been fixed. I identify the revision in the trunk but I want to quickly find the first release branch that contains this.

Currently the way I do this is to look at each branch one by one until I find the first one which contains this revision.

I'm thinking there must be an easier way. Any ideas?

Many thanks.

Paul.

Upvotes: 0

Views: 384

Answers (4)

Kevin Matte
Kevin Matte

Reputation: 11

I'm know this is an old question, but here's what helped me out:

svn log -v -r{revision I'm looking for}  {path above trunk and all branches}

The "-v" listed out the files changed in that revision, with full paths to the branches.

Upvotes: 1

P2l
P2l

Reputation: 915

I think both of the above answers go some way to addressing this (thanks for your answers) but I think the bottom line is that there's no easy (one click) way of doing this.

I just happened to stumble across this whilst looking at the future proposed changes for SVN:

http://subversion.tigris.org/issues/show_bug.cgi?id=3627

Looks as if this area could be improved in a future release.

Upvotes: 1

Dmitry Yudakov
Dmitry Yudakov

Reputation: 15734

The branches and the trunk are in one repository, you could examine the log of the whole repository instead of analyzing separately the trunk and the branches.

------------------------------------------------------------------------
r11 | dmitry | 2010-07-23 17:31:26 +0300 (Fri, 23 Jul 2010) | 2 lines

Release 1.0.1 branch

....
------------------------------------------------------------------------
r5 | dmitry | 2010-07-22 19:14:01 +0300 (Thu, 22 Jul 2010) | 1 line

bug x fixed

Upvotes: 0

pmod
pmod

Reputation: 10997

Try option "Revision graph" which shows the svn tree including trunk/branches/tags with corresponding revision numbers.

Upvotes: 0

Related Questions