[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: AW: Reversion of copied directories with depth != infinity

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Fri, 06 May 2011 10:39:25 +0100

"Markus Schaber" <m.schaber_at_3s-software.com> writes:

> m.schaber_at_SCHABERM /cygdrive/d/testcheckout
> $ svn propset svn:ignore testfile bar
> property 'svn:ignore' set on 'bar'
>
> m.schaber_at_SCHABERM /cygdrive/d/testcheckout
> $ svn status
> A + bar
>
> m.schaber_at_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
Received on 2011-05-06 11:39:59 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.