[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: Jay Levitt <lists-svn_at_shopwatch.org>
Date: 2005-10-22 22:46:51 CEST

Ryan Schmidt wrote:

> 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.

I love the analogy. But I imagine what the original poster wanted to do
was something like this:

"Assuming my working copy of http://svn.example.com/repos/trunk, compare
dir1/dir2/dir3/dir4/dir5/dir6/filename with the version that exists in
tag JUNE_RELEASE". That's easy to do in CVS, because the tags are just
aliases to revisions. In SVN, it's harder, because tags are, as you say,
directories. Plus, you can't do an svn diff between a working copy and
an URL!

So the only way to do it, AFAIK, is "svn diff
http://svn.example.com/repos/trunk/dir1/dir2/dir3/dir4/dir5/dir6/filename
http://svn.example.com/repos/tags/june-release/dir1/dir3/dir3/dir4/dir5/dir6/filename".

Which does kinda su^h^h present many opportunities for future
innovations in svn.

Jay Levitt

>
> 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
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Oct 22 22:48:53 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.