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

doing a diff between the trunk and a tag

From: Wesley J Landaker <wjl_at_icecavern.net>
Date: 2003-08-19 05:22:25 CEST

Hi folks,

I've been using subversion for a while now, and I really like it. =)

There is one thing that came up a bunch today a few times while I was
trying to view some changes between various tags, and I wonder if there
is a good way to do it that I'm missing:

In CVS, if I had TAG1 and TAG2, and I wanted to see what changed between
them, I'd say:

cvs diff -rTAG1 -rTAG2

So in subversion, if I have:

/trunk
/branch/tag1
/branch/tag2

I basically wanted to do:

svn diff --old branch/tag1 --new branch/tag2

But of course, that doesn't actually work. ;)

What I ended up doing was:

svn log branch/tag1 (see what revision tag1 was created on)
svn log branch/tag2 (see what revision tag2 was created on)
svn diff -r<tag1-rev>:<tag2-rev> trunk

Is there an easier paradigm for doing a diff between tags or branches?
Maybe some kind of:

svn merge --just-print-out-all-the-diffs-to-stdout-like-svn-diff-does

=)

-- 
Wesley J. Landaker - wjl@icecavern.net
OpenPGP FP: 4135 2A3B 4726 ACC5 9094  0097 F0A9 8A4C 4CD6 E3D2

  • application/pgp-signature attachment: signature
Received on Tue Aug 19 05:23:52 2003

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.