[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: Erik Andersson <kirean_at_gmail.com>
Date: Thu, 5 Aug 2010 10:04:19 +0200

On Wed, Aug 4, 2010 at 9:09 PM, Mark _ <mark_aok_at_hotmail.com> wrote:

> Hi all,
>
> I have a system where there is a "trunk" and a branch called "branchX". I
> have checked out branchX and merged the trunk code into branchX on my
> working copy. I am trying to diff my working copy against trunk like so:
> svn diff --old=http://path-to-dir/myDirectory --new=myDirectory
>
> the diff compares branchX WITHOUT the modifications in my working copy and
> shows many differences.
>
> The working copy is definitely identical to trunk becaue when I use the
> unix style diff (see below) there are absolutely no differences.
>
> diff -rux ".svn" myDirectory /home/mark/myDirectory
>
> 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?
>
You could create a tag for your working copy and then diff that tag vs the
trunk.

Cheers / Erik

>
> I'm using svn 1.6.5.
>
> Thanks,
> Mark
>
>
>
>
Received on 2010-08-05 10:04:58 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.