Using special URLs, it is also possible to call TortoiseProc from a web page.
TortoiseSVN registers a new protocol tsvncmd:
which can be used to create hyperlinks that execute TortoiseSVN commands. The commands and parameters are the same as when automating TortoiseSVN from the command line.
The format of the tsvncmd:
URL is like this:
tsvncmd:command:cmd?parameter:paramvalue?parameter:paramvalue
com cmd
a ser um dos comandos permitidos, parameter
a ser o nome de um parâmetro como path
ou revision
, e paramvalue
a ser o valor a usar para esse parâmetro. A lista de parãmetros permitidos depende do comando usado.
The following commands are allowed with tsvncmd:
URLs:
:update
:commit
:diff
:repobrowser
:checkout
:export
:blame
:repostatus
:revisiongraph
:showcompare
:log
:properties
Um simples URL de exemplo poderá se assemelhar a isto:
<a href="tsvncmd:command:update?path:c:\svn_wc?rev:1234">Update</a>
, ou num caso mais complexo:
<a href="tsvncmd:command:showcompare? url1:https://svn.code.sf.net/p/stefanstools/code/trunk/StExBar/src/setup/Setup.wxs? url2:https://svn.code.sf.net/p/stefanstools/code/trunk/StExBar/src/setup/Setup.wxs? revision1:188?revision2:189">compare</a>