tags:

views:

2528

answers:

4

I would like to do

svn commit -m "<message>"

But message should have two lines:

Commit by: firstuser
Bug track: 9283

How to add new line character into message? I've tried SHIFT+ENTER, CTRL+T but it does not work. I use MS cmd command line.

A: 

Try something like this:

echo Message1 & echo Message2 & echo Message3

Jon
How to solve my problem with this approach?
tomaszs
A: 

The Problem is that "enter" (Ascii 13) sends the command. So you need a "newline"

use alt + 10 (press alt, type the number at the numberblock, release alt)

DrFuture
I've tried it. I have new line in command window, but SVN gets only first line.
tomaszs
+2  A: 

How about using the -F parameter to get the log message from a file?

Then, you could do this (untested):

ECHO Commit by: firstuser>SvnLog.txt
ECHO Bug track: 9283>>SvnLog.txt

SVN COMMIT -F SvnLog.txt
aphoria
Looks like it's only solution
tomaszs
A: 

I found the answer over at Serverfault:

svn ci -m $'This is the first line\nThis is the second line'

Apparently it's a shell-problem.

Claes Mogren