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

Re: Bug: "Next diff" button is undimmed on pressing "Reload"

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Sat, 16 Jan 2010 10:06:06 +0100

On 13.01.2010 07:57, Dmitry wrote:
> Hey.
>
> In TortoiseMerge 1.6.99, Build 18271 - 32 Bit the following behavior
> can be observed.
>
> Change any one line except the first one in any file in the working
> copy, then spawn TortoiseMerge to compare it to base. Both "Next
> difference" and "Prev difference" buttons are dimmed. Now press
> "Reload" - the caret is set to (0,0) character and "Next difference"
> lights up.

That's how it should work, not sure why you think this is a bug.

When TMerge is started and you have the "jump to first diff on start"
option enabled, TMerge does exactly that: it jumps to the first difference.
Since your file only has one difference, the "prev/next diff" buttons
are disabled - they wouldn't do anything.
When you hit reload, TMerge doesn't jump to the first diff anymore but
tries to keep the current view as it is. But a reload also means doing
the diff again, so the currently selected diff is discarded. The cursor
gets set to the top of the view. And now, there *is* a "next difference"
(the first and only one in this file). So the button gets enabled again.

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=2437618
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-01-16 10:06:16 CET

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.