Manuals

Reverter (Desfazer) revisões no repositório

Usar a janela de auditoria de revisão

De longe a maneira mais fácil para reverter alterações de uma ou mais revisões, é usar a caixa de diálogo registo de revisões.

  1. Selecione o arquivo ou pasta onde deseja reverter as modificações. Se você quiser reverter todas as modificações, isto precisa ser a pasta de nível superior.

  2. Select TortoiseSVNShow Log to display a list of revisions. You may need to use Show All or Next 100 to show the revision(s) you are interested in.

  3. Select the revision you wish to revert. If you want to undo a range of revisions, select the first one and hold the Shift key while selecting the last one. If you want to pick out individual revisions and ranges, use the Ctrl key while selecting revisions. Right click on the selected revision(s), then select Context MenuRevert changes from this revision.

  4. Or if you want to make an earlier revision the new HEAD revision, right click on the selected revision, then select Context MenuRevert to this revision. This will discard all changes after the selected revision.

You have reverted the changes within your working copy. Check the results, then commit the changes.

Use a janela de combinação

Se desejas inserir numeros de revisões como uma lista, podes usar a caixa de diálogo Integrar. O método anterior usa integração nos bastidores; este método usa-a explicitamente.

  1. In your working copy select TortoiseSVNMerge.

  2. Na caixa de diálogo Tipo Integração selecciona Integra um intervalo de revisões.

  3. In the From: field enter the full repository URL of your working copy folder. This should come up as the default URL.

  4. In the Revision range to merge field enter the list of revisions to roll back (or use the log dialog to select them as described above).

  5. Tem a certeza que a caixa Integração inversa está verificada.

  6. Na caixa de diálogo Opções de integração aceita os valores por defeito.

  7. Clique Merge para completar a mesclagem.

Você reverteu as mudanças dentro de sua cópia de trabalho. Verifique se ocorreu conforme o esperado, em seguida, confirmar as alterações.

Use svndumpfilter

Since TortoiseSVN never loses data, your rolled back revisions still exist as intermediate revisions in the repository. Only the HEAD revision was changed to a previous state. If you want to make revisions disappear completely from your repository, erasing all trace that they ever existed, you have to use more extreme measures. Unless there is a really good reason to do this, it is not recommended. One possible reason would be that someone committed a confidential document to a public repository.

The only way to remove data from the repository is to use the Subversion command line tool svnadmin. You can find a description of how this works in the Repository Maintenance.

TortoiseSVN homepage