-m "This message 'should work' when you commit"
-m 'This message "should work" when you commit'
-m "This message `should work` when you commit"
(This is on Mac OS X Terminal)
On Dec 9, 2007, at 9:03 AM, melmack melmack wrote:
> Hello
>
> I've one problem with escaping special characters (quotes and
> backslashes) in commit message. To explain it better I'll show 2
> examples (both in Win32 cmd.exe shell):
>
> (1) svn commit -m "foo\\\"bar"
>
> Comment is saved to svn as foo\"bar
>
> (2) svn commit -m "foo\\\\bar"
>
> Comment is saved to svn as foo\\\\bar
>
> What is the reason of the fact that in example (1) svn interpreter
> collapses \\ to \ and \" to " (as in regular expressions syntax)
> and in example (2) nothing is collapsed? I thought that example(2)
> should have saved \\ as comment. Why was the result different? So
> how should I escape the comments properly? Is there an algorithm to
> do this?
> My temporary solution to solve this problem is putting comment to
> file and call svn vommit with -F option but this is inefficient
> way, so any help will be appreciated...
>
> Best regards
> Melmack
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Dec 10 18:07:04 2007