Multi-line commit message in Windows?

Alexander Belchenko bialix at ukr.net
Fri Jan 23 11:46:43 GMT 2009


John Arbash Meinel пишет:
> 
> Marius Kruger wrote:
>> 2009/1/22 Daniel Lidström <daniel.lidstrom at sbg.se
>> <mailto:daniel.lidstrom at sbg.se>>
>>
>>     Hello!
>>
>>     I am unsure about how to commit with a multi-line message. A tutorial I
>>     found simply says this:
>>     "You can enter a multi-line commit message; in most shells you can enter
>>     this just by leaving the quotes open at the end of the line."
>>
>>     However, it doesn't tell me how to "end" the message and start the
>>     commit.
>>     And I don't want to just try something.
>>
>>
>> you just add a closing " and hit enter.
> 
> Unfortunately, it seems that .bat scripts under windows don't support
> multi-line parameters properly. Specifically if you did:
> 
>> bzr.bat commit -m "foo bar
> baz bang
> biz
> "
> 
> It will let you, and nothing thinks there is a problem, until you do:
> 
>> bzr log --short
>   2523 John Arbash Meinel
>   foo bar
> 
> 
> I couldn't find any way to change how 'bzr.bat' worked. For my personal
> use, I actually use cygwin with an 'ash' wrapper around 'bzr' to pass
> things off to win32 python properly.
> 
> (As near as I can tell, it is just the .bat handler which is broken.)
> 
> So using plain bzr.bat the only thing to do is:
> 
> bzr.bat commit
> 
> Which will then spawn an editor which lets you put as much as you want.
> (Obviously you are likely to just type 'bzr' under a windows command
> prompt, I was just trying to be clear what thing was being run.)
> 
> Another possibility, I think, is to do:
> 
> C:\Python25\python C:\Python25\Scripts\bzr commit -m "multiline
> message
> "
> 
> As I'm pretty sure the python executable handles multiple lines just
> fine, it just is '.bat' which is broken.
> 
> Then again, if you are using the standalone install "bzr.exe" I would
> think things would "Just Work", so if they don't it is worth knowing about.

Multiline messages *never* worked for me in the standart cmd.exe prompt.
I'd say standard windows shell does not support them at all.




More information about the bazaar mailing list