Use linefeed or carriage return in Subversion commit message from the command line

Posted by Scott on Server Fault See other posts from Server Fault or by Scott
Published on 2010-06-07T14:45:52Z Indexed on 2010/06/07 14:53 UTC
Read the original article Hit count: 336

Filed under:
|

I am using Subversion 1.6.6 on Ubuntu 10.04. I would like to insert a carriage return, or linefeed, or newline into my commit message so that when reading the log, the comments are formatted appropriately. It works fine when I use the system editor, or specify a file for the commit comment, but what I really want is to be able to do something like the following:

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

and have the comment presented as:

This is the first line
This is the second line

My example does not work, it produces output:

This is the first line\nThis is the second line

So, is there a way to do this? If so, how?

© Server Fault or respective owner

Related posts about svn

Related posts about command-line