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

Re: Keeping backups in Subversion

From: Rob van Oostrum <rvanoo_at_gmail.com>
Date: Thu, 6 Aug 2009 20:25:14 -0400

On Thu, Aug 6, 2009 at 7:50 PM, Ryan Schmidt <
subversion-2009b_at_ryandesign.com> wrote:

> On Aug 6, 2009, at 10:47, Jan Seeger wrote:
>
> > The only problem here is how to delete files that have been deleted
> > on the remote host. How would I go about detecting missing files
> > and removing them from the working copy?
>
> Basically, you don't detect such things.
>
> http://subversion.tigris.org/faq.html#wc-change-detection
>
> ------------------------------------------------------
>
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2381126
>
> To unsubscribe from this discussion, e-mail: [
> users-unsubscribe_at_subversion.tigris.org].
>

Missing files show up as such in 'svn status' (prefixed by '!').
So something like this:

svn st | grep ^! | cut -c 8- | xargs svn rm
svn st | grep ^? | cut -c 8- | xargs svn add

Might need some tweak and polish, but that should essentially do the job.

Hope that helps,

Rob

-- 
Polarion Software
Subversion Training & Consulting Services | ttp://
www.polarion.com/services/index.php
Download Eclipse bundled with Subversive  today! |
http://www.polarion.com/products/eclipse/
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2381129
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-07 02:26:11 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.