The goal is to set the following svn property in a .bat
file:
Properties on 'logs':
svn:ignore
*
The command should be svn propset svn:ignore * logs
but the asterisk needs to be escaped somehow.
I don't want to add the current list of files I really want to ignore all files in the logs directory without ignoring the logs directory itself.
However I can't figure out how to properly escape the asterisk to get a literal asterisk in the svn property.
'*'
results in the string'*'
(with the quotes) to be set as the value which does not ignore any files at all"*"
or^*
still expands the asterisk causing svn to set a property (with the name of a file in the current directory) on all directories.\*
or"\*"
causes SVN to look for a (or all?) files in the root of theC:
drive for some reason%*
results in a value of%*
I can't think of any other way to escape a character in a bat file.