We use Subversion for version control on a project.
I have a process separate from Subversion that "cleans up" my working copy of the repository by deleting some files that are no longer needed. I would like to mark the deleted files in a script file as deleted for Subversion, so that on my next commit with Tortoise SVN the deletions are automatically selected instead of just being marked as "missing".
A similar question was asked in svn delete removed files, but the answers proposed there do not work. They suggest using the command
svn delete filename.txt
When filename.txt
has already been deleted, I get an error message:
svn: E200005: Use --force to override this restriction (local modifications may be lost)
svn: E200005: 'C:\filename.txt' is not under version control
If I use the --force
option, I still get an error message:
svn: E125001: 'C:\filename.txt' does not exist
One of the reasons for using the external clean-up routine is that some of the files are *.dll's that may currently be in use. Windows prevents their deletion in that case. Only after successful deletion do I want to mark the deletion for a Subversion commit.
If I do
svn delete --force filename.dll
directly, when the file is still in use Subversion marks the file for deletion but can't actually delete it and the result is a Subversion data inconsistency that even the Subversion cleanup command can't easily solve.
Therefore my question:
How can I mark an already deleted file for Subversion deletion, using the command line?