Pergunta

Eu tenho um repositório SVN. Com o tempo, à medida que edito, modifiquei, altero, etc., alguns arquivos são redundantes/indesejados.

Qual é a melhor prática: excluir os arquivos do SVN ou apenas para zero os arquivos? Ou há uma terceira opção que estou perdendo?

Foi útil?

Solução

Se você excluir arquivos desnecessários da Subversão, eles ainda estarão disponíveis na história. Eles não desaparecem para sempre. Então, eu "svn rm" eles.

Outras dicas

Delete the file(s):

svn remove <file>

The files will not be permanently removed from the repository, just removed from the HEAD revision.

Committing an empty file would still leave the file to annoy you, just minus any content. svn rm is the way to go.

As subversion comes out with new releases you may want to do a full repository export(instead of a backup or hotcopy). Install the new release and then do a full repository import.

This will start your revision numbers over and you will loose all history before that export.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top