[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: Thompson, Graeme (GE Infra, Aviation) <Graeme.Thompson_at_ge.com>
Date: Wed, 9 Apr 2008 11:04:33 -0400

> -----Original Message-----
> From: Ruslan Sivak [mailto:russ_at_vshift.com]
> Sent: 09 April 2008 01:45
> To: users_at_subversion.tigris.org
> Subject: committing local deletions
>
> 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.
>

You could try the following in a batch file (beware that I have not
actually tested this and is just off the top of my head!)
On windows you can use teh GNUWin ports of sed and grep

rem Generate a list of all deleted files
svn st | grep ^!.* | sed "s/\(^!......\)\(.*\)/\2/" > temp.txt
rem loop through and actually delete them in subversion.
for /F "delims=," %%f in (temp.txt) do svn rm %%f
rem finally commit the changes
svn ci -m "Deleted images through web"

---------------------------------------------------------------------
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-09 17:05:54 CEST

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