Manuals

Comandos do TortoiseSVN

Obter

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

Os itens de nível da caixa combo estão relacionados com o parâmetro -depth.

If Omit externals is checked, use the --ignore-externals switch.

If you are checking out a specific revision, specify that after the URL using -r switch.

Atualizar

svn info URL_of_WC
svn update [-r rev] PATH
      

Updating multiple items is currently not an atomic operation in Subversion. So TortoiseSVN first finds the HEAD revision of the repository, and then updates all items to that particular revision number to avoid creating a mixed revision working copy.

If only one item is selected for updating or the selected items are not all from the same repository, TortoiseSVN just updates to HEAD.

No command line options are used here. Update to revision also implements the update command, but offers more options.

Atualizar para Revisão

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

Os itens de nível da caixa combo estão relacionados com o parâmetro -depth.

If Omit externals is checked, use the --ignore-externals switch.

Submeter

In TortoiseSVN, the commit dialog uses several Subversion commands. The first stage is a status check which determines the items in your working copy which can potentially be committed. You can review the list, diff files against BASE and select the items you want to be included in the commit.

svn status -v PATH
      

If Show unversioned files is checked, TortoiseSVN will also show all unversioned files and folders in the working copy hierarchy, taking account of the ignore rules. This particular feature has no direct equivalent in Subversion, as the svn status command does not descend into unversioned folders.

If you check any unversioned files and folders, those items will first be added to your working copy.

svn add PATH...
      

When you click on OK, the Subversion commit takes place. If you have left all the file selection checkboxes in their default state, TortoiseSVN uses a single recursive commit of the working copy. If you deselect some files, then a non-recursive commit (-N) must be used, and every path must be specified individually on the commit command line.

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

LogMessage here represents the contents of the log message edit box. This can be empty.

If Keep locks is checked, use the --no-unlock switch.

Diff

svn diff PATH
      

If you use Diff from the main context menu, you are diffing a modified file against its BASE revision. The output from the CLI command above also does this and produces output in unified-diff format. However, this is not what TortoiseSVN is using. TortoiseSVN uses TortoiseMerge (or a diff program of your choosing) to display differences visually between full-text files, so there is no direct CLI equivalent.

You can also diff any 2 files using TortoiseSVN, whether or not they are version controlled. TortoiseSVN just feeds the two files into the chosen diff program and lets it work out where the differences lie.

Log

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

By default, TortoiseSVN tries to fetch 100 log messages using the --limit method. If the settings instruct it to use old APIs, then the second form is used to fetch the log messages for 100 repository revisions.

If Stop on copy/rename is checked, use the --stop-on-copy switch.

Procurar por Modificações

svn status -v PATH
or
svn status -u -v PATH
      

The initial status check looks only at your working copy. If you click on Check repository then the repository is also checked to see which files would be changed by an update, which requires the -u switch.

If Show unversioned files is checked, TortoiseSVN will also show all unversioned files and folders in the working copy hierarchy, taking account of the ignore rules. This particular feature has no direct equivalent in Subversion, as the svn status command does not descend into unversioned folders.

Gráfico de Revisões

O gráfico de revisões é uma característica apenas do TortoiseSVN. Não existe comando equivalente para a linha de comando.

What TortoiseSVN does is an

svn info URL_of_WC
svn log -v URL
        

where URL is the repository root and then analyzes the data returned.

Navegador de

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

You can use svn info to determine the repository root, which is the top level shown in the repository browser. You cannot navigate Up above this level. Also, this command returns all the locking information shown in the repository browser.

The svn list call will list the contents of a directory, given a URL and revision.

Conflitos

This command has no CLI equivalent. It invokes TortoiseMerge or an external 3-way diff/merge tool to look at the files involved in the conflict and sort out which lines to use.

Resolvido

svn resolved PATH
      

Renomear

svn rename CURR_PATH NEW_PATH
      

Apagar

svn delete PATH
      

Reverter

svn status -v PATH
      

The first stage is a status check which determines the items in your working copy which can potentially be reverted. You can review the list, diff files against BASE and select the items you want to be included in the revert.

When you click on OK, the Subversion revert takes place. If you have left all the file selection checkboxes in their default state, TortoiseSVN uses a single recursive (-R) revert of the working copy. If you deselect some files, then every path must be specified individually on the revert command line.

svn revert [-R] PATH...
      

Limpar

svn cleanup PATH
      

Obter bloqueio

svn status -v PATH
      

The first stage is a status check which determines the files in your working copy which can potentially be locked. You can select the items you want to be locked.

svn lock -m "Mensagem de bloqueio" [--force] PATH...
      

LockMessage here represents the contents of the lock message edit box. This can be empty.

If Steal the locks is checked, use the --force switch.

Liberar bloqueio

svn unlock PATH
      

Ramificar/Rotular...

svn copy -m "LogMessage" URL URL
or
svn copy -m "LogMessage" URL@rev URL@rev
or
svn copy -m "LogMessage" PATH URL
      

The Branch/Tag dialog performs a copy to the repository. There are 3 radio button options:

  • Última revisão no repositório
  • especC which correspond to the 3 command line variants above.

LogMessage here represents the contents of the log message edit box. This can be empty.

Alternar

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

Combinar

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

The Test Merge performs the same merge with the --dry-run switch.

svn diff From_URL@revN To_URL@revM
      

The Unified diff shows the diff operation which will be used to do the merge.

Exportar

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

This form is used when accessed from an unversioned folder, and the folder is used as the destination.

Exporting a working copy to a different location is done without using the Subversion library, so there's no matching command line equivalent.

What TortoiseSVN does is to copy all files to the new location while showing you the progress of the operation. Unversioned files/folders can optionally be exported too.

In both cases, if Omit externals is checked, use the --ignore-externals switch.

Reposicionar

svn switch --relocate From_URL To_URL
      

Criar repositó aqui

svnadmin create --fs-type fsfs PATH
      

Adicionar

svn add PATH...
      

Se você selecionou uma pasta, o TortoiseSVN inicia fazendo uma busca recursiva nela por ítens que podem ser adicionados.

Importar

svn import -m LogMessage PATH URL
      

LogMessage here represents the contents of the log message edit box. This can be empty.

Autoria

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

If you use TortoiseBlame to view the blame info, the file log is also required to show log messages in a tooltip. If you view blame as a text file, this information is not required.

Adicionar à lista de ignorados

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

Because the svn:ignore property is often a multi-line value, it is shown here as being changed via a text file rather than directly on the command line.

Criar Correção

svn diff PATH > patch-file
      

TortoiseSVN creates a patch file in unified diff format by comparing the working copy with its BASE version.

Aplicar correção

Applying patches is a tricky business unless the patch and working copy are at the same revision. Luckily for you, you can use TortoiseMerge, which has no direct equivalent in Subversion.

TortoiseSVN homepage