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

Re: Using svn diff from command line

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 01 May 2008 19:06:51 +0200

Richie wrote:
> What is wrong with this?
>
> C:\Program Files\TortoiseSVN\bin\TortoiseProc.exe /command:diff /
> path:"c:\aasource\32 bit apps\pcrservercode\debug\XL_WS72U\PW_CSRC
> \FRAGS.TXT.mbr" /path2:"c:\aasource\32 bit apps\pcrservercode\debug
> \XL_WS72\PW_CSRC\FRAGS.TXT.mbr

Did you forget the closing " for /path2 ?

If not, create the registry key
HKCU\Software\TortoiseSVN\Debug (DWORD)
and set the value to something else than 0.

With that key != 0, TortoiseProc will show the command line it was
started with every time it starts up.

(the same goes for HKCU\Software\TortoiseMerge\Debug)

> The paths are all correct, but when I use CreateProcess() in C++ to
> launch it, it does not work.

CreateProcess has two params, one for the path to the executable and one
for the command line params. Try both ways:
* putting the whole string in the first param to CreateProcess
* splitting the string up: first param is the path to TortoiseProc,
second param is the command line params for TortoiseProc.
One of those should work.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.net

Received on 2008-05-01 19:07:05 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.