Set a multi-line commit message from the windows command line?
Mads Kiilerich
mads at kiilerich.com
Thu Nov 17 07:22:24 CST 2011
On 11/17/2011 02:17 PM, Angel Ezquerra wrote:
> Hi,
>
> I am making a small script that must run on windows and which must
> commit some changes into a mercurial repository. For various reasons I
> cannot use the command server and it _must_ work on the terrible
> windows command shell (cmd.exe). I can use a python script, but I
> cannot rely on having any non standard library installed, so basically
> I am calling hg.exe through the Subprocess module.
>
> The problem is that the commit message may have multiple lines but I
> have not found a way to do so. Is there a way to make the commit
> message span multiple lines?
hg commit -l commitmessage.txt
/Mads
More information about the Mercurial
mailing list