WordPress Quick Tips

Remove all “missing” files from a SVN working copy

Posted by: Vincent on: April 14, 2011

After upgrading a local installation of WordPress subversion started complaining about missing files, that were deleted during the upgrade.

Since there were a lot of files I searched for an easy way to delete all the missing files at once, and found such a way here.

svn rm $( svn status | sed -e '/^!/!d' -e 's/^!//' )

One of the comments mentions that it doesn’t work with filenames that contains white space, which I haven’t tested.

 

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

About

WordPress Quick Tips is a blog supplying great tips about WordPress.

We hope to create a great knowledge resource for WordPress developers as well as serving a reminder for all the forgetful ones.

The blog is created and run by Vincent of Oakwood Creative

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 69 other followers

Follow

Get every new post delivered to your Inbox.

Join 69 other followers