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

Re: svn diff working copy against a different branch

From: Alan Barrett <apb_at_cequrux.com>
Date: Sat, 21 Aug 2010 21:57:00 +0200

[replying to an old mesage]

On Thu, 05 Aug 2010, Arpad Ilia wrote:
> > Is it possible to diff a working copy against code in another branch (trunk
> > in this case)? Or is it expected to checkout trunk and use a diff utility
> > every time?
>
> As far as I know you can only diff two working copies or two URLs (if
> one of the arguments is an URL then both will handled as such).

If you use svn diff with the "--old" and "--new" options, then you can
make one of them point to the URL for a different branch, and the other
point to a working copy.

   svn diff --old=svn://server/repo/branch/subdir --new=./subdir

--apb (Alan Barrett)
Received on 2010-08-21 21:58:15 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.