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

Re: committing local deletions

From: Kevin Grover <kevin_at_kevingrover.net>
Date: Wed, 9 Apr 2008 18:18:56 -0700

On Tue, Apr 8, 2008 at 10:08 PM, Ruslan Sivak <rsivak_at_istandfor.com> wrote:
> Posted this earlier, but didn't seem to come though...
> --------------------------------------------------
> We have a folder that contains images that are uploaded through the web.
> Sometimes these images are deleted. I have a script that runs nightly to
> commit the changes. It doesn't seem to commit deletions properly.
> Is there a way to force it to commit deletions? The files were deleted
> through the filesystem and not through svn delete.
>
> Russ
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
> For additional commands, e-mail: users-help_at_subversion.tigris.org
>
>

You could add something like this to your script

svn status | grep ^! | awk '{print $2;}' | xargs svn delete

(You could combine the check into the awk command, but I was having
trouble getting it to work).

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-04-10 03:19:18 CEST

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