Wiki merge error

Claudius Link claudius.link at googlemail.com
Tue Aug 14 04:44:43 CDT 2007


Hello,

I can't state on the context of the problem but the "exit /b"
is necessary if you like to use the scripts interactively from the command line.
Without the /b the whole command line windows will close
every time the exit is executed (very annoying).

Regards,
Claudius

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?
>
> -Brad
>
>
> [1] http://www.selenic.com/mercurial/wiki/index.cgi/MergeProgram
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>


More information about the Mercurial mailing list