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

Re: History in subversion

From: Johan Corveleyn <jcorvel_at_gmail.com>
Date: Wed, 12 Jun 2013 23:39:30 +0200

On Wed, Jun 12, 2013 at 10:45 PM, Les Mikesell <lesmikesell_at_gmail.com> wrote:
> On Wed, Jun 12, 2013 at 2:41 PM, Olivier Antoine
> <oliviera201304_at_gmail.com> wrote:
>> Could you help more on diff dirs, please :
>> - What is the best way with SVN to compare a same directory on two different
>> branches ?
> Just check one out and diff the workspace against a different revision
> or branch path or both.

Or 'svn diff --old=^/branches/branch1 --new=^/branches/branch2'

(The ^/ syntax is shorthand for the repository root, when your current
working directory is inside a working copy (so svn can discover what
repository you're referring to). On Windows you have to escape the ^,
so it becomes ^^/).

In 1.8 you'll no longer need the --old / --new options for comparing
two arbitrary URLs, you can just type:

svn diff ^/branches/branch1 ^/branches/branch2

Received on 2013-06-12 23:40:21 CEST

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.