Mercurial in Windows .bat file seems to terminate execution?

Dave Brosius dbrosius at mebigfatguy.com
Sun Oct 9 16:36:55 UTC 2011


I don't have a windows box in front of me to test, but if i recall 
correctly, you'd probably want to do

*call* hg init Repo

when done from a bat file

On 10/09/2011 12:21 PM, Danny Tuppeny wrote:
> Ok, this is kinda weird... I don't know if it's Mercurial-related, but 
> upgrading Mercurial is the only thing I've done recently...
>
> I had a .bat file that I used to try and reproduce a bug I was having 
> with a Mercurial extension. It just echo'd a few lines into files, 
> added them to a repo, etc.
>
> However today, when I ran the script, it seems to just stop after the 
> first Mercurial command... I chopped it down, so now my .bat file just 
> has:
>
>     echo Creating Repo
>     hg init Repo
>     echo Repo Created
>     pause
>
>
> When I run it, this is the output:
>
>     X:\Temp\RebaseIfBug>DannyTest.bat
>     X:\Temp\RebaseIfBug>echo Creating Repo
>     Creating Repo
>     X:\Temp\RebaseIfBug>hg init Repo
>     X:\Temp\RebaseIfBug>
>
>
> It seems to have run "hg init Repo" (the Repo folder has been created, 
> and has a .hg folder), however neither the second echo, nor the pause 
> have worked.
>
> Is this possibly a bug in a recent Mercurial?
>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20111009/60319f43/attachment-0002.html>


More information about the Mercurial mailing list