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

Re: replace and changelists

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Wed, 23 Feb 2011 17:17:35 +0000

Philip Martin <philip.martin_at_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
Received on 2011-02-23 18:18:12 CET

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.