Subversion - How to delete files
This will sound like such a Noob questions but I can't seem to find how to delete files from subversion.
How to I "check in" a delete?
I do not seem to find anything within right click subversion or the main subversion menu.
Commit does not detect the deleted file.
Thanks
Stéphane
Please sign in to leave a comment.
If you have deleted the file from within IDEA, then IDEA should have asked whether you also want
to remove the file from subversion.
If you answered "Yes" there, then you should see the deleted file in the changes view (alt-f9)
and should be able to commit that single deletion by right-clicking on the file and choosing "Commit".
(But it should also be part of "Commit Project".)
If you have just deleted the file in Windows explorer (or answered "No" to IDEA's question),
then Subversion itself is not treating the file as Deleted. If you have Tortoise installed,
you should right-click the file in Windows explorer then use the TortoiseSVN submenu and from
that the menu item "Delete".
You can "update" from Subversion to get the missing file back, then delete it "the correct way".
If that doesn't work then the exact IDEA version would be helpful.
Stéphane Rainville wrote:
have you tried simply deleting the file from intellij? see what happens...
Works exactly as you said in 8.1.3.
I was testing 9.0M1 and it simply did not ask about deleting the file from Subversion when I delete within IntelliJ.
I tried both the Project View and the Grails view. No difference.
Thanks.
Well, IDEA should have asked. Everything else is an error.
But now if the file is already deleted, you should see a node 'Locally
Deleted Files' in the Changes view. There you can right click on the
deleted file and 'Remove from VCS'.
On 8/13/2009 1:06 AM, Stéphane Rainville wrote:
>
>
>
>
--
Martin Fuhrer
Fuhrer Engineering AG
http://www.fuhrer.com
Not quite... everything else is configurable ;)
Settings -> Project Settings -> Version Control -> Confirmation -> Files
Deletion