[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: Johan Appelgren <johan.appelgren_at_gmail.com>
Date: Fri, 4 Sep 2015 20:29:26 +0200

Thanks!

Didn't realize it had to do with the endrev since the error message
mentions "revision 1" that I set as startrev.

/Johan

2015-09-04 19:36 GMT+02:00 Stefan Küng <tortoisesvn_at_gmail.com>:

> 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
> /endrev:-1
> 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:
> /endrev:"-1"
> 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.
>
> Stefan
>
> --
> ___
> oo // \\ "De Chelonian Mobile"
> (_,\/ \_/ \ TortoiseSVN
> \ \_/_\_/> The coolest interface to (Sub)version control
> /_/ \_\ http://tortoisesvn.net
>
> ------------------------------------------------------
>
> http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3135875
>
> To unsubscribe from this discussion, e-mail: [
> users-unsubscribe_at_tortoisesvn.tigris.org].
>

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2015-09-04 20:51:12 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.