[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: TortoiseProc feature requrest

From: Julien Cugnière <julien.cugniere_at_gmail.com>
Date: 2006-01-28 18:15:37 CET

On 1/28/06, Stefan Küng <tortoisesvn@gmail.com> wrote:
> > 1. With "/command:blame", a parameter like "/line:nnn" to be able to
> > directly jump to line 'nnn' when opening the blame window.
>
> Before we start working on something like this, can you please explain
> why and what for you need that?

Most editors and IDEs let you define external tools that can easily be
called from the interface. You can usually pass these tools info like
the currently edited file, the current word, the current position in
the file, etc.

Thanks to TortoiseProc, I'm hacking a quick and dirty AddIn to Visual
Studio 6 that lets me use toolbar buttons to launch TortoiseSVN's
dialogs (kind of like a poor man's SCC integration plugin). Just
clicking the "show file modifications" button from Visual Studio is
easier than using explorer to navigate to the file I was editing and
selecting the option from its right click menu :-)

In the case of "blame", it would be even better if I could open the
blame window directly on the line I was editing, instead of scrolling
there manually (I usually use blame to see if the function I'm looking
at was changed recently).

> > 2. With "/command:blame", parameters to specify the "from" and "to"
> > revisions, so that the dialog asking for them is skipped. Not sure
> > about "use text viewer to view blames".
>
> Done in revision 5568.

Wonderful, thank you!

> > 3. An "applypatch" command, to go alongside "createpatch".
>
> You can already do that. Of course, that's the job of TortoiseMerge, not
> TortoiseProc, so you need to automate that one.

Oh, right! I hadn't thought of calling TortoiseMerge directly.

> /diff:"path/to/patch/file"
>
> If the patchfile is inside a working copy, TortoiseMerge can use that
> path information to automatically start up, without showing the "open"
> dialog for asking the folder where to apply the patchfile. In that case,
> pass
> /wc
> to the command line.

I'll have a look at TortoiseMerge command line options ASAP. Ideally,
I'd like to specify the destination folder, and have it ask the path
to the patch file, like when you right click on a folder and select
"apply patch". But that's not crucial as I can always have my AddIn
open a file selector before calling TortoiseMerge.

--
Julien Cugnière
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org
Received on Sat Jan 28 18:16:59 2006

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.