Re: Windows, svn propset svn:ignore *

2022-08-28 Thread Daniel Sahlberg
Den fre 26 aug. 2022 kl 15:13 skrev Jon Daley :

> I don't use Windows, so I can't help you on the escaping of the *, but I
> often use propedit, rather than propset (partly because I can never
> remember the order of the directory and the property value), so that would
> be easy enough for a one-off solution.
>
> Also, if you are using TortoiseSVN, can't you just right-click the
> directory and set the property that way and avoid the command-line usage
> entirely?
>

I missed a critical point: This is run as part of an automated script (a
BAT file). Both the suggestions above work fine, except they require manual
input in the middle of the script which I'm trying to avoid.

Thanks for bringing up these options!

/Daniel


Re: Windows, svn propset svn:ignore *

2022-08-28 Thread Branko Čibej

On 28.08.2022 14:39, Daniel Sahlberg wrote:
Den fre 26 aug. 2022 kl 15:13 skrev Jon Daley 
:


I don't use Windows, so I can't help you on the escaping of the *,
but I
often use propedit, rather than propset (partly because I can never
remember the order of the directory and the property value), so
that would
be easy enough for a one-off solution.

Also, if you are using TortoiseSVN, can't you just right-click the
directory and set the property that way and avoid the command-line
usage
entirely?


I missed a critical point: This is run as part of an automated script 
(a BAT file). Both the suggestions above work fine, except they 
require manual input in the middle of the script which I'm trying to 
avoid.


Thanks for bringing up these options!

/Daniel



Write the * to a temporary file and use 'svn propset -F'.

-- Brane


Re: Windows, svn propset svn:ignore *

2022-08-28 Thread Daniel Shahaf
Jon Daley via users wrote on Fri, 26 Aug 2022 13:13 +00:00:
> I don't use Windows, so I can't help you on the escaping of the *, but I 
> often use propedit, rather than propset (partly because I can never 
> remember the order of the directory and the property value),

Usually (not just in svn) the directory / local file target is last.
This makes it easy to pass multiple targets, or to invoke the command
via xargs(1), etc..

Also, it plays well with various shells' M-. keybinding to insert the
last command's last word again.