Wiki merge error

Peer Sommerlund peer.sommerlund at gmail.com
Tue Aug 14 04:42:47 CDT 2007


On 14/08/07, Brad Schick <schickb at gmail.com> wrote:
>
> It looks to me like there is an error in most of the suggested merge cmd
> scripts for Windows [1]. They all terminate with "exit /b 1" or "exit /b
> 0".
>
> Including the /b seems wrong, because that means exit the batch script
> not the cmd shell. cmd.exe does end up exiting (presumably because the
> script it was running ends), but the script's return code does *not*
> make it back to Python. You always get 0 from cmd.exe
>
> If you remove the /b, however, the cmd shell exists using the value
> return by the script. Any reason for using /b that I'm missing? If not
> should I just modify the wiki?
>


I'm the author of the WinMerge script, and I just followed the layout of the
kdiff3 script.
I was also puzzled by the use of /b, but used it because "the other guys
probably knew what they were doing".

Since the scripts are very similar, I suspect that they have all been copied
this way. I think you should go ahead and modify the wiki.

Regards,
Peer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20070814/543e1d45/attachment.htm 


More information about the Mercurial mailing list