Philip Martin <philip.mar...@wandisco.com> writes:

> Changelists only contain files in 1.6, but in 1.7 files can be replaced
> with directories:
>
> $ svn changelist qq wc/foo
> $ svn rm wc/foo
> $ svn mkdir wc/foo
>
> Does the changelist qq refer to the replacing dir foo or only to the
> replaced file foo?

When a recursive revert is passed a changelist revert only operates on
names that are both part of the recursive tree and in the changelist.
When the changelist was just files this was relatively easy, but what
happens when a name in the changelist is now a directory?  Does the
directory get reverted?  If so, should the revert be recursive or
non-recursive?

My guess is that the directory should be non-recursively reverted, and
that this should have no effect if such a revert is not possible.
That's sort of consistent with 1.6:

$ svn changelist qq wc/A/f
$ svn rm wc/A
$ svn revert -R --changelist qq wc

That doesn't revert wc/A/f (silently) because it's not possible to
revert A/f alone.


-- 
Philip

Reply via email to