"Markus Schaber" <m.scha...@3s-software.com> writes:

> m.schaber@SCHABERM /cygdrive/d/testcheckout
> $ svn propset svn:ignore testfile bar
> property 'svn:ignore' set on 'bar'
>
> m.schaber@SCHABERM /cygdrive/d/testcheckout
> $ svn status
> A  +    bar
>
> m.schaber@SCHABERM /cygdrive/d/testcheckout
> $ svn revert --depth=empty bar
> svn: Try 'svn revert --depth infinity' instead?
> svn: Unable to lock 'bar/innerdir'
>
> -- snap --
>
> Now, if we have other modifications inside bar, there is no way to
> revert the change of the svn:ignore property without side effects.

As far as I can work out you want to revert the property change without
reverting the copy.  That's not possible using revert as revert applies
to all changes: properties, text, conflicts, tree-changes.  So revert
attempts to undo the copy and that need depth infinity.  There is no API
to revert a subset of the changes such as just the properties.

> Is there a workaround for this situation (working with the API of libsvn
> 1.6.16)? Maybe manually synchronizing the properties to the BASE state?

svn_wc_get_prop_diffs to get the changes followed by svn_wc_prop_set to
make the changes you want.

-- 
Philip

Reply via email to