SVN Repositório

Repositório SVN Subversion projetos abertos

Comandos SVN

Controle de Versão com Subversion

    svn info https://svn.jar.io/no_projeto

Checkout

    svn checkout [-depth ARG] [--ignore-externals] [-r rev] URL PATH

Atualizar

    svn info URL_of_WC
    svn update [-r rev] PATH

Atualizar para Revisão

    svn info URL_of_WC
    svn update [-r rev] [-depth ARG] [--ignore-externals] PATH

Submeter

    svn status -v PATH  
    svn add PATH...  
    svn commit -m "LogMessage" [-depth ARG] [--no-unlock] PATH...

Comparar

    svn diff PATH

Mostrar Registo

    svn log -v -r 0:N --limit 100 [--stop-on-copy] PATH

ou use a sintaxe svn log -v -r M:N [--stop-on-copy] PATH

Verificar Modificações

    svn status -v PATH

ou use a sintaxe svn status -u -v PATH

Gráfico de Revisões

    svn info URL_of_WC
    svn log -v URL

Navegador de Repositório

    svn info URL_of_WC
    svn list [-r rev] -v URL

Editar Conflitos


Resolvido

    svn resolved PATH

Alterar nome

    svn rename CURR_PATH NEW_PATH

Remover

    svn delete PATH

Reverter

    svn status -v PATH
    svn revert [-R] PATH...      

Limpar

    svn cleanup PATH      

Obter "Lock"

    svn status -v PATH
    svn lock -m "LockMessage" [--force] PATH...           

Libertar "Lock"

    svn unlock PATH

Ramo/Etiqueta

    svn copy -m "LogMessage" URL URL

ou use svn copy -m "LogMessage" URL@rev URL@rev ou use svn copy -m "LogMessage" PATH URL

Trocar

    svn info URL_of_WC
    svn switch [-r rev] URL PATH    

Integrar

    svn merge [--dry-run] --force From_URL@revN To_URL@revM PATH

Exportar

    svn export [-r rev] [--ignore-externals] URL Export_PATH

Reposicionar

    svn switch --relocate From_URL To_URL

Criar Repositório Aqui

    svnadmin create --fs-type fsfs PATH

Adicionar

    svn add PATH...

Importar

    svn import -m LogMessage PATH URL

Responsabilizar

    svn blame -r N:M -v PATH
    svn log -r N:M PATH

Addicionar á list de ítems a ignorar

    svn propget svn:ignore PATH > tempfile
    {edit new ignore item into tempfile}
    svn propset svn:ignore -F tempfile PATH

Criar Correcção

svn diff PATH > patch-file