You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jan Hendrik <ja...@bigfoot.com> on 2003/09/19 11:27:51 UTC

--diff-cmd question

Hi all out there!

Trying to use ExamDiff with the --diff-cmd I get the following error:

D:\>svn diff -r BASE --diff-cmd d:\tmp\examdiff\examdiff.exe 
d:\tmp\testworkcopy
\ridinger\niemeyer\prints\index.htm
Index: D:/Tmp/TestWorkCopy/Ridinger/niemeyer/prints/index.htm
=================================================
==================
svn: Error calling external program
svn: svn_io_run_cmd: error exitwhy 2 for process 
'd:\tmp\examdiff\examdiff.exe'

Same error if I ommit -r BASE or define Examdiff in subversion/conf.

In a Windows message I am told that Examdiff has caused an error 
and a log were created, but I cannot find this log.

TIA for any help - Jan Hendrik

Jan Hendrik Niemeyer
jan.hendrik@myrealbox.com
--------------------------------------
     Let us build cathedrals of peace,
     where the people are free.
                -- Ronald Reagan

--------------------------------------
Mailed with Pegasus Mail 3.12c (32bit).
Never heard of it?
Easy to use, full featured - and freely available.
And *no* automatic virus activation and spreading.
Take a look at http://www.pmail.com
Give it a try - and you'll never miss anything else.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: --diff-cmd question

Posted by Tobias Ringstrom <to...@ringstrom.mine.nu>.
Philip Martin wrote:
>>svn: Error calling external program
>>svn: svn_io_run_cmd: error exitwhy 2 for process 
>>'d:\tmp\examdiff\examdiff.exe'
> 
> The external diff program exited with a return value of 2.  Subversion
> expects the program to return 0 or 1.  You may have to use the wrapper
> program or script to convert the ExamDiff return value.

I wondered why it said exitwhy, so I looked it up. Exitwhy is not 
exitcode, and 2 means that the process exited because of a signal 
(APR_PROC_SIGNAL).

/Tobias


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: --diff-cmd question

Posted by Jan Hendrik <ja...@bigfoot.com>.
Concerning Re: --diff-cmd question
Philip Martin wrote on 19 Sep 2003, 15:27, at least in part:

> "Jan Hendrik" <ja...@bigfoot.com> writes:
> 
> > Trying to use ExamDiff with the --diff-cmd I get the following
> > error:
> 
> Is ExamDiff some well known Windows program?  Does it accept command
> line arguments similar to GNU diff?  You may have to use a wrapper
> program or script to convert the GNU style arguments to a form
> acceptable to ExamDiff.

It is a Windows program, if well-known I do not know, but it was 
mentioned for TSVN.

It takes the command line [Filename1] [Filename2] [Options]. 
Options are concerned with considering white spaces etc.

I tried Winmerge (of Sourceforge) now, too, and it works - sort of: it 
ignores the filename and shows a directory listing. Not what I want. 
If invoked with filenames it shows the file, not the folder. In TSVN it 
has worked just as ExamDiff.

Testing further by giving svn diff the filename in two different working 
copies Winmerge comes up with *two* windows and I now see it 
compares each folder (not the file) against itself.

Next I took WinDiff. It just gives me a list of unrelated command 
line options. It should be invoked with either one or two files. In the 
first case it should compare the file with, say, -r BASE. There is no 
difference if both filenames are handed over.

GNU Diff works. So it seems none of the Windows tools takes the 
parameters in the GNU/DOS style and TSVN makes wrappers for 
them.

Jan Hendrik


> > D:\>svn diff -r BASE --diff-cmd d:\tmp\examdiff\examdiff.exe 
> > d:\tmp\testworkcopy
> > \ridinger\niemeyer\prints\index.htm
> > Index: D:/Tmp/TestWorkCopy/Ridinger/niemeyer/prints/index.htm
> > =================================================
> > ==================
> > svn: Error calling external program
> > svn: svn_io_run_cmd: error exitwhy 2 for process 
> > 'd:\tmp\examdiff\examdiff.exe'
> 
> The external diff program exited with a return value of 2.  Subversion
> expects the program to return 0 or 1.  You may have to use the wrapper
> program or script to convert the ExamDiff return value.
> 
> I don't know what an ExamDiff return value of 2 means but I'd guess it
> indicates that the program failed, possibly because it doesn't
> understand GNU diff style command line arguments.
> 
> -- 
> Philip Martin
> 


---------------------------------------
Freedom quote:

     I would rather be exposed to the inconveniences
     attending too much liberty than to those attending
     too small a degree of it.
                -- Thomas Jefferson to Archibald Stuart, 1791

---------------------------------------
Mailed with Pegasus Mail 3.12c (32bit).
Never heard of it?
Easy to use, full featured - and freely available.
And *no* automatic virus activation and spreading.
Take a look at http://www.pmail.com
Give it a try - and you'll never miss anything else.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: --diff-cmd question

Posted by Jan Hendrik <ja...@bigfoot.com>.
Sorry, not Tigris got hungry, I mis-posted this to the dev@ list.

Concerning Re: --diff-cmd question
Philip Martin wrote on 19 Sep 2003, 15:27, at least in part:

> "Jan Hendrik" <ja...@bigfoot.com> writes:
>
> > Trying to use ExamDiff with the --diff-cmd I get the following
> > error:
>
> Is ExamDiff some well known Windows program?  Does it accept command
> line arguments similar to GNU diff?  You may have to use a wrapper
> program or script to convert the GNU style arguments to a form
> acceptable to ExamDiff.

It is a Windows program, if well-known I do not know, but it was
mentioned for TSVN.

It takes the command line [Filename1] [Filename2] [Options].
Options are concerned with considering white spaces etc.

I tried Winmerge (of Sourceforge) now, too, and it works - sort of: it
ignores the filename and shows a directory listing. Not what I want.
If invoked with filenames it shows the file, not the folder. In TSVN it
has worked just as ExamDiff.

Testing further by giving svn diff the filename in two different working
copies Winmerge comes up with *two* windows and I now see it
compares each folder (not the file) against itself.

Next I took WinDiff. It just gives me a list of unrelated command
line options. It should be invoked with either one or two files. In the
first case it should compare the file with, say, -r BASE. There is no
difference if both filenames are handed over.

GNU Diff works. So it seems none of the Windows tools takes the
parameters in the GNU/DOS style and TSVN makes wrappers for
them.

Jan Hendrik


> > D:\>svn diff -r BASE --diff-cmd d:\tmp\examdiff\examdiff.exe
> > d:\tmp\testworkcopy
> > \ridinger\niemeyer\prints\index.htm
> > Index: D:/Tmp/TestWorkCopy/Ridinger/niemeyer/prints/index.htm
> > =================================================
> > ==================
> > svn: Error calling external program
> > svn: svn_io_run_cmd: error exitwhy 2 for process
> > 'd:\tmp\examdiff\examdiff.exe'
>
> The external diff program exited with a return value of 2.  Subversion
> expects the program to return 0 or 1.  You may have to use the wrapper
> program or script to convert the ExamDiff return value.
>
> I don't know what an ExamDiff return value of 2 means but I'd guess it
> indicates that the program failed, possibly because it doesn't
> understand GNU diff style command line arguments.
>
> --
> Philip Martin
>
---------------------------------------
Freedom quote:

     The house we hope to build
     is not for my generation but for yours.
     It is your future that matters.
     And I hope that when you are my age,
     you will be able to say as I have been able to say:
     We lived in freedom.
     We lived lives that were a statement, not an apology.
                -- Ronald Reagan

---------------------------------------
Mailed with Pegasus Mail 3.12c (32bit).
Never heard of it?
Easy to use, full featured - and freely available.
And *no* automatic virus activation and spreading.
Take a look at http://www.pmail.com
Give it a try - and you'll never miss anything else.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: --diff-cmd question

Posted by Philip Martin <ph...@codematters.co.uk>.
"Jan Hendrik" <ja...@bigfoot.com> writes:

> Trying to use ExamDiff with the --diff-cmd I get the following error:

Is ExamDiff some well known Windows program?  Does it accept command
line arguments similar to GNU diff?  You may have to use a wrapper
program or script to convert the GNU style arguments to a form
acceptable to ExamDiff.

> D:\>svn diff -r BASE --diff-cmd d:\tmp\examdiff\examdiff.exe 
> d:\tmp\testworkcopy
> \ridinger\niemeyer\prints\index.htm
> Index: D:/Tmp/TestWorkCopy/Ridinger/niemeyer/prints/index.htm
> =================================================
> ==================
> svn: Error calling external program
> svn: svn_io_run_cmd: error exitwhy 2 for process 
> 'd:\tmp\examdiff\examdiff.exe'

The external diff program exited with a return value of 2.  Subversion
expects the program to return 0 or 1.  You may have to use the wrapper
program or script to convert the ExamDiff return value.

I don't know what an ExamDiff return value of 2 means but I'd guess it
indicates that the program failed, possibly because it doesn't
understand GNU diff style command line arguments.

-- 
Philip Martin

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org