views:

496

answers:

4

Using TortoiseSVN on Windows, how do I delete files from the repository that have already been deleted on the file system? I would expect them to show up as "missing" or "deleted" on my next commit, but that doesn't seem to be the case.

On Linux/Mac, I just run this command:

svn st | grep ^! | cut -b7- | xargs svn delete

-Chris

+6  A: 

You have to use "Tortoise svn -> delete" to delete the file.

If you have deleted directly by mistake, do an svn update to get the file back and then do "tortoise svn->delete"

:-)

Indhu Bharathi
+1  A: 

Files show up as "missing" in the commit dialog of TortoiseSVN only if the folder where they were deleted in is versioned and still present. If you deleted the whole folder, it won't show up as missing.

Stefan
+1  A: 

If you deleted the file by accident (without using svn) you can simply revert that modification to get the file back, then delete it with svn. Or install the svn command line in parallel and use that for deletion :)

bluebrother
If I remember correctly, you can even select 'svn delete' from the context-menu on the revert dialog.
Stijn Sanders
+1  A: 

Right click and open the TortoiseSVN repository browser. You will see the file in the repo and can delete it directly.

Ryu