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

Re: Changed behavior for blame command in TSVN 1.9

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Fri, 4 Sep 2015 19:36:24 +0200

On 04.09.2015 08:58, Johan Appelgren wrote:
> Hi,
> I have a couple of TSVN commands as external tools shortcuts in Visual
> Studio. Since upgrading to TSVN 1.9 the blame command I've used in the
> past no longer works.
> tortoiseproc /command:blame /path:"$(ItemPath)" /notempfile
> /line:$(CurLine) /startrev:1 /endrev:-1
> If I use that now I get the following error:
> [Window Title]
> TortoiseSVN
> [Main Instruction]
> Subversion reported an error:
> [Content]
> Unable to find repository location for
> '<subversion url>'
> in revision 1
> [Close]
> As a workaround I have removed the revision options but then the line
> option doesn't work. After the revision dialog I always end up on line 1
> in the blame result.
> Is this no longer supported? Is it a bug?

You're specifying the endrev as
so you were just lucky it worked before :)

See: the command line parser accepts '/' but also '-' as a command line
switch. When you specify "/endrev:-1" this is parsed as
/endrev -1
so basically: an empty 'endrev' and a parameter '1'.

Now: an empty endrev is converted to zero. I guess that svn 1.8.x just
assumed the revision was not specified and assumed HEAD. But svn 1.9.x
tries to use revision 0 as the end revision, and that's why it fails.

To specify -1 as the revision, you have to specify this as:
and then it works.

But: when I don't specify no revision at all but only the /line
parameter, the blame still goes to that line, not line 1.


   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2015-09-04 19:36:25 CEST

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

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