Feature request: (Automation) TortoiseProc.exe /log /revisions:"x,y,z"

28 views
Skip to first unread message

jav...@chromatic.games

unread,
Mar 18, 2019, 3:39:43 PM3/18/19
to TortoiseSVN
Hi my name is Javier Barreto

I hope this is the right way for requesting features; I've only found one sample of a feature request which was answered in a polite and orderly fashion... so I'm guessing this is it.

It would be really nice if the GUI supported specifying which revisions to pull like svn does.

Consider the following command:

svn log -cx,y,z

where x,y,z are revision numbers.

Currently it is not possible to run the same command with TortoiseSvn

TortoiseSVN.exe /log /revisions:"x,y,z"

It does allow text filtering based on a result list of up to 100 items (or so)

I.e.:

TortoiseSVN.exe /log /findregex /findstring:"x|y|z" /findtype:8

The above command pulls all revisions from HEAD to HEAD-100 and returns all entries that match the filter. But if the revisions are not withing that range the user needs to manually feed it with all (or some more) revisions (ShowAll or Next)

Thanks,
Javo
(For the English speakers: Havo)

Stefan

unread,
Mar 19, 2019, 4:19:54 PM3/19/19
to TortoiseSVN


On Monday, March 18, 2019 at 8:39:43 PM UTC+1, Javier Barreto wrote:

Consider the following command:

    svn log -cx,y,z

where x,y,z are revision numbers.

Currently it is not possible to run the same command with TortoiseSvn

    TortoiseSVN.exe /log /revisions:"x,y,z"

It does allow text filtering based on a result list of up to 100 items (or so)

I.e.:

    TortoiseSVN.exe /log /findregex /findstring:"x|y|z" /findtype:8

The above command pulls all revisions from HEAD to HEAD-100 and returns all entries that match the filter. But if the revisions are not withing that range the user needs to manually feed it with all (or some more) revisions (ShowAll or Next)


Well, you could just run
TortoiseSVN.exe /command:log /startrev:HEAD /endrev:lowestrevisionof(x|y|z) /findstring"x|y|z" /findtype:8

you can set the range of revisions with startrev/endrev and then filter for your specific revisions.

Also, fetching a list of specific revisions is very slow since it requires a call to the server for every revision. So you wouldn't be faster than fetching the hole revision list.

Stefan

Javier Barreto

unread,
Mar 19, 2019, 6:10:36 PM3/19/19
to TortoiseSVN on behalf of Stefan
Running the following command:
    start C:\"Program Files"\TortoiseSVN\bin\TortoiseProc.exe /command:log /path:"%SVN_URL%" /startrev:HEAD /endrev:0 /findregex /findtype:8 /findstring:"\b(x|y|z)\b"
lists and filters on up to 100 revisions. After pressing ShowAll it displays and filters over the full list as originally intended.

In my current test HEAD is at 800 so the full list is not very big.

I've omitted the lowestrevisionof for simplicity

--
You received this message because you are subscribed to a topic in the Google Groups "TortoiseSVN" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tortoisesvn/sm2kdqfLPOk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tortoisesvn...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tortoisesvn/bda23093-0dcc-491d-abee-e925ecd92dfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stefan

unread,
Mar 20, 2019, 5:28:44 PM3/20/19
to TortoiseSVN
you can also pass /limit:10000 to the command line.

Javier Barreto

unread,
Mar 21, 2019, 11:33:08 AM3/21/19
to TortoiseSVN on behalf of Stefan
Nice. I didn't see that one on the documentation.
This works
Thanks!

On Wed, Mar 20, 2019, 5:28 PM Stefan via TortoiseSVN <torto...@googlegroups.com> wrote:
you can also pass /limit:10000 to the command line.

--
You received this message because you are subscribed to a topic in the Google Groups "TortoiseSVN" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tortoisesvn/sm2kdqfLPOk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tortoisesvn...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages