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

Re: "The system cannot find the file specified" during update

From: Ruslan Sivak <russ_at_vshift.com>
Date: Wed, 22 Oct 2008 04:19:32 -0400

Ryan Schmidt wrote:
>
>>
>> Looks like after I installed UnixUtils and changed the code slightly
>>
>> svn st --depth=infinity | sed -n "s/^\! //p" | xargs svn rm
>>
>> it seems to work. What if the file name has a spaces in it? Does
>> anyone have a regex for that?
>
> The regular expression is accurate for any filename; the problem is
> the xargs command which splits input on whitespace, whether that be a
> newline or a space. Maybe there is an argument to xargs to tell it to
> split only on newlines. Or you could replace xargs with a short script
> written in perl or another language of your choice. For example:
>
> svn st --depth=infinity \
> | sed -n "s/^\! //p" \
> | perl -e 'while (<>) {chomp;unlink;}'
>

This doesn't seem to do what the other script does. Unless I'm mistaken
this will delete the file (which is already deleted to start with).
Either way, I don't currently have perl installed, and would rather not
install it unless I had to.

There does seem to be a switch to xargs to tell it that you're
separating filenames using the null character -0. Is there a way to do
the regular expression to make it insert a null character there?

Russ

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-10-22 10:20:01 CEST

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

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