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

Re: Diff with previous version

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sat, 04 Jun 2011 08:38:47 +0200

On 02.06.2011 21:51, VTGroup wrote:
> My Tortoise context menu provides a "Diff with previous version" option,
> which generates exactly the diff I need. However, when I try to script the
> same functionality, I get different behavior.
>
> "Diff with previous version" shows the on-disk copy of my file in the right
> pane (called "Working copy"), and the previous revision in the left pane
> (called "Revision 68"), so I see the differences I'm looking for.
>
> However, when I try to simulate this from the command line (TortoiseProc
> /command:diff /path:MyFile.java), I see the same right pane, but "Revision
> 69" in the left pane, so there are no differences.

That's not the correct command for this. The command you're using is the
'diff' command which diffs the file with its working BASE.

If you want to find out the exact command the easy way, create the
registry DWORD value HKCU\Software\TortoiseSVN\Debug and set it to 1.
Then a dialog will show you the exact command line TortoiseProc is
started with: just click on the context menu "Diff with previous
version" and check the command line in the dialog.

After that, set the registry value to 0 so you don't get annoyed by that
dialog for every command.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2757589
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2011-06-04 08:39:06 CEST

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

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