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

Re: How to compare a revision with a tag?

From: Ryan Schmidt <subversion-2005_at_ryandesign.com>
Date: 2005-10-22 20:28:33 CEST

On Oct 22, 2005, at 08:24, Zsolt wrote:

> How can I compare for example the revision 8 with a tag (for
> example 3.5)? I
> understand that I can create a project for each tag but we have a
> lot of
> tags with deep directories and I find that very complicated.
>

I think there's some confusion of terminology here.... A revision
represents a state of the complete repository. A tag is a directory
within the repository. Asking how to compare a revision with a tag is
like asking how to compare blue with Thursday. I'll try to give an
example; if it's not what you were asking, then please clarify what
it is you want to do.

If you have this structure:

http://svn.example.com/project/
     trunk/
     branches/
         1.0/
     tags/
         1.0.0/
         1.0.1/

Say that tag 1.0.1 was copied from branch 1.0 at revision 100 and
that it's now revision 200. If you want to know what has changed
between tag 1.0.1 and the 1.0 branch as it is now, then you can do this:

svn diff http://svn.example.com/project/tags/1.0.1 http://
svn.example.com/project/branches/1.0

Or, if you want to know what's changed from tag 1.0.1 to branch 1.0
as it was at revision 150, you could do this:

svn diff http://svn.example.com/project/tags/1.0.1 http://
svn.example.com/project/branches/1.0@150

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sun Oct 23 13:20:20 2005

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.