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

Re: Placing tag messages in trunk

From: Michael W Thelen <thelenm_at_cs.utah.edu>
Date: 2004-06-23 06:58:41 CEST

* Toby Johnson <toby@etjohnson.us> [2004-06-22 22:39]:
> The problem with this is that I can't easily go to /trunk a year from
> now, and find out how file /trunk/foo.c changed from tag "1.0.1" to
> "1.0.2", since the commit messages from creating the tags only show up
> in a "svn log" of /tags, not of /trunk. The best approach I see is to do
> a log of /tags, find out the revision numbers for the 1.0.1 and 1.0.2
> tags, then do a diff on /trunk/foo.c using the explicit revision numbers
> obtained. This is rather unwieldy, especially using TortoiseSVN.

If I understand correctly, can't you just do this?

svn diff /path/to/repos/tags/1.0.1/foo.c /path/to/repos/tags/1.0.2/foo.c

Or do you want to look at the actual log messages between 1.0.1 and
1.0.2? In that case, you may have to find out the revision in which the
1.0.1 tag was created, but you don't need to know when 1.0.2 was
created. Do something like this:

svn log --stop-on-copy /path/to/repos/tags/1.0.1/foo.c
    (to find out the revision when 1.0.1 was created)
svn log -rN:HEAD /path/to/repos/tags/1.0.2/foo.c

where N is the revision number you found out in the first step. That
may not be much help, but at least it's only one revision number lookup
instead of two.

-- Mike

-- 
Michael W. Thelen
Don't throw away the old bucket until you know whether the new one holds
water.          -- Swedish proverb

Received on Wed Jun 23 07:01:31 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.