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

Re: [TSVN] "diff" command in context menu when selecting an added file

From: SteveKing <stefankueng_at_gmail.com>
Date: 2005-01-06 08:02:17 CET

On Wed, 05 Jan 2005 22:26:28 +0100, George Wieggers
<g.wieggers@zonnet.nl> wrote:

> IMHO TortoiseSVN should be able to do a "diff" on added files. Let me
> try to explain why.
>
> svn allows you to do the following
>
> - svn add foo.txt
> - svn diff foo.txt
>
> (will show the entire file in the diff)

As a unified diff, yes.

> - svn commit
> - svn cp foo.txt bar.txt
>
> (now edit bar.txt)
>
> - svn diff bar.txt
>
> (svn diff will show your modifications)

Again, as a unified diff.

> This isn't possible in TortoiseSVN yet, because the "diff" command is
> supressed for every "added" file.

It's suppressed for a reason: a 'diff' on a working copy file always
means comparing the working copy file with its base. And since added
files don't have a base yet, this won't work at all.

> The patch at the bottom of this message enables the diff command for
> added files.
> I've built and tested this patch and it works as expected.

You've tested that? I don't think so.
You're patch only activates the context menu 'diff' for added files
too. But I'm sure you haven't tested the actual diff command. It won't
work! Because, as I mentioned above: added files don't have a base
yet, so there's nothing to compare them with.

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Thu Jan 6 08:03:11 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.