On Wed, Sep 9, 2009 at 03:16, Steve Borho<st...@borho.org> wrote:
> On Tue, Sep 8, 2009 at 1:01 PM, Yuki KODAMA<endflow....@gmail.com> wrote:
>> # HG changeset patch
>> # User Yuki KODAMA <endflow....@gmail.com>
>> # Date 1252432807 -32400
>> # Node ID 4cc8000935d9358dbb2e2473f9d0574729bc6fa5
>> # Parent  7fda75c1944e0022db39d4db7f1083bc2b5bd885
>> history: reset 'origtip' variable when leave 'new' filter
>>
>> After synchronizing, it turn on 'new' filter and new revisions are
>> shown with green color automatically, but it doesn't back to normal
>> colors even though I switch the filter from 'new' to 'all' till
>> restarting changelog viewer.
>>
>> diff --git a/hggtk/history.py b/hggtk/history.py
>> --- a/hggtk/history.py
>> +++ b/hggtk/history.py
>> @@ -409,7 +409,10 @@
>>         opts.update(kwopts)
>>
>>         # handle strips, rebases, etc
>> -        self.origtip = min(len(self.repo), self.origtip)
>> +        if self.filter == 'all':
>> +            self.origtip = len(self.repo)
>> +        else:
>> +            self.origtip = min(len(self.repo), self.origtip)
>>         opts['orig-tip'] = self.origtip
>>
>>         self.nextbutton.set_sensitive(True)
>
> It is a feature that they stay green.  Resetting origtip should
> require something more explicit than changing the filter to 'all'.  I
> can't think of a good approach off the top of my head, though.

Understood. I'll re-submit a patch if I get good idea for this.
Thanks.

-- 
Yuki KODAMA

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to