Limitations of tsvncmd URL handler

158 views
Skip to first unread message

Tim Enderling

unread,
Mar 19, 2012, 4:11:52 AM3/19/12
to d...@tortoisesvn.tigris.org
Hi all,

is there a specific (security?) reason for not allowing all commands
supported by TortoiseProc.exe to be triggered by the tsvncmd URL
handler?

I would like to use the :log command from a link. Is this a possible
future enhancement of TortoiseSVN?

From http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-automation-urlhandler.html:

> The following commands are allowed with tsvncmd: URLs:
> :update
> :commit
> :diff
> :repobrowser
> :checkout
> :export
> :blame
> :repostatus
> :revisiongraph
> :showcompare

Best regards,
Tim

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2937629

To unsubscribe from this discussion, e-mail: [dev-uns...@tortoisesvn.tigris.org].

Stefan Küng

unread,
Mar 19, 2012, 3:10:23 PM3/19/12
to d...@tortoisesvn.tigris.org
On 19.03.2012 09:11, Tim Enderling wrote:
> Hi all,
>
> is there a specific (security?) reason for not allowing all commands
> supported by TortoiseProc.exe to be triggered by the tsvncmd URL
> handler?
>
> I would like to use the :log command from a link. Is this a possible
> future enhancement of TortoiseSVN?

Done in r22701.

Stefan

--
___
oo // \\ "De Chelonian Mobile"
(_,\/ \_/ \ TortoiseSVN
\ \_/_\_/> The coolest Interface to (Sub)Version Control
/_/ \_\ http://tortoisesvn.net

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2937759

Tim Enderling

unread,
Mar 27, 2012, 1:30:31 AM3/27/12
to tortois...@googlegroups.com, dev
On Monday, March 19, 2012 8:10:23 PM UTC+1, Stefan wrote:
On 19.03.2012 09:11, Tim Enderling wrote:

> I would like to use the :log command from a link. Is this a possible
> future enhancement of TortoiseSVN?

Done in r22701.

Wow, that was quick. Thanks a lot!

Tim

Michael Oakley

unread,
Aug 10, 2013, 12:08:03 PM8/10/13
to d...@tortoisesvn.tigris.org, Stefan Küng
Is it possible to add other commands from tsvncmd also?
merge?
tag?

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3062386

Stefan Küng

unread,
Aug 10, 2013, 1:42:48 PM8/10/13
to d...@tortoisesvn.tigris.org, Michael Oakley
On 10.08.2013 18:08, Michael Oakley wrote:
> Is it possible to add other commands from tsvncmd also?
> merge?

not possible since you can't know the path to the working copy, and to
do a merge a working copy is needed.

> tag?

Same here.

All commands that require a local path are blocked in the tsvncmd url
handler for security reasons.

Stefan

--
___
oo // \\ "De Chelonian Mobile"
(_,\/ \_/ \ TortoiseSVN
\ \_/_\_/> The coolest interface to (Sub)version control
/_/ \_\ http://tortoisesvn.net

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3062390

nrb...@gmail.com

unread,
May 21, 2019, 5:01:55 AM5/21/19
to TortoiseSVN-dev
On Saturday, 10 August 2013 19:42:48 UTC+2, Stefan wrote:
> On 10.08.2013 18:08, Michael Oakley wrote:
> > Is it possible to add other commands from tsvncmd also?
> > merge?
>
> not possible since you can't know the path to the working copy, and to
> do a merge a working copy is needed.

Related: May I use a path that is relative to the home of the user?

tsvncmd:command:checkout?path:%HOMEPATH%/svn_wc?url:https//mysvnurl...
tsvncmd:command:checkout?path:~/svn_wc?url:https//mysvnurl...

I've pulled my hair out looking for a way to do this...

Reply all
Reply to author
Forward
0 new messages