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

Re: How to fix issue #4023 (on Windows, 'svn rm missingItem' deletes the unversioned 'MissingItem' from disk)?

From: Johan Corveleyn <jcorvel_at_gmail.com>
Date: Wed, 25 Jan 2012 13:32:30 +0100

On Wed, Jan 25, 2012 at 10:29 AM, Bert Huijben <bert_at_qqmail.nl> wrote:

[ ... ]

> The 'svn rm' case that opened this thread was the first case where libsvn_wc
> would be involved and this opens the door to many other changes.
> If we change svn rm, then it no longer matches 'svn revert' for these cases.

Actually, thinking more about it, there is a way to fix this issue in
the client itself, but it's really hairy (and all other clients will
have to implement the same trick of course): convert the 'svn rm' into
an 'svn rm --keep-local' for every case-shadowed wc item. The check
for finding a case-shadowed wc item is already present in cmdline.c
(part of #3865). All we'd have to do then is making sure to call the
lower levels with a keep-local flag for all the case-shadowed items in
the target list (so potentially splitting up the 'svn rm' execution in
two calls, one with keep-local=TRUE, and another with
keep-local=<whatever the user said>). That's all :-).

(I'm not suggesting that we do this, just pointing out the
possibility. It's a commandline-only fix, all other clients are on
their own then ... (but we could document this suggestion in the
libsvn_client API that takes these targets ...))

-- 
Johan
Received on 2012-01-25 13:33:26 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.