> -----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