In SVN is there a command I can use to delete all locally missing files in a directory?
Or failing that, some way of listing only those files that are missing (or, in the more general case, have status A, D, ?, etc.)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are using TortoiseSVN, just do a Check for Modifications, sort by the Status column, select all the entries marked
missing, right-click to open the context menu, and select Delete. Finally, commit to publish the changes to the repository.If you are on Windows, but prefer the command-line and enjoy dabbling in PowerShell, this one-liner will do the trick:
That is, filter the output to only those lines showing missing files (denoted by an exclamation at the start of the line), capture the associated file name, and perform an
svn rmon that file name.(Blog post Remove all “missing” files from a SVN working copy does something similar for Unix/Linux.)