A
A
Andrey2012-05-15 09:24:46
CVS
Andrey, 2012-05-15 09:24:46

SVN: how to remove from control files and directories that are already removed from the file system?

Actually, almost the whole question is in the title.
CMS does not give a damn about version control and easily deletes files and directories in it (SVN) located.
After that, the following picture is observed:
image
How to remove unnecessary files from the repository not one by one, but recursively in a certain folder? I wrote a script that deletes such files in a cycle, but something tells me that I'm doing nonsense.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
N
Nerten, 2012-05-15
@reaferon

svnstatus | grep "^\!" | awk "{print \$2}" | xargs svn delete

V
Vumik, 2012-05-15
@Vumik

Maybe you mean
svn export url/to/ /path/to/dir/

A
Anatoly, 2012-05-15
@taliban

And why don't you just commit that folder and its contents that the cms deletes? fill in the missing ones separately via ftp, for example. There, as far as I understand, statics, it is not needed in SVN in fact.

N
Nikolai Vasilchuk, 2012-05-15
@Anonym

Still, uploads of any CMS should be ignored in SVN.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question