[RFC] Mercurial Queue support in qct

Steve Borho steve at borho.org
Wed Dec 27 08:20:41 CST 2006


On Wednesday 27 December 2006 04:56, Andrei Vermel wrote:
> Hello Steve,
>
> I had a play with your nice gui, and have a few comments on the interface.
>
> On a fairly big project I got each run of hg takes a few seconds.
> And this is what each click on a check box does to get a diff. This
> makes selection much less pleasent. 

There are two solutions I can think of for this.  The first is to bypass the 
hg executable and directly use the internal function calls to get the diff 
data.  This idea is discounted right away because 1) internal APIs change
over time and I don't want to have to support more than one version of
them   2) You probably don't buy much performance gain by using Mercurial
that way  3)  Some Windows users will only have hg.exe installed, so qct
must support that configuration.

The second idea is to run 'hg diff' repo wide at startup and cache the results 
in a dictionary keyed by filename.  The 'Refresh List' button would then 
trigger the back-end to empty it's cache.

> Also selecting/unselecting a 
> big group of modified files that are consequent in the list would
> be a lot easier with multiple selection using a shift key - click start of
> group, hold shift, click end of group.

I had disabled the multi-selection method earlier because it conflicted with 
the file selection methodology.  I'll take another look at it, it's likely 
this can be re-enabled now.

> Otherwise the tool is quite helpful, especially now with the mq support.

Thanks for the feedback

-- 
Steve Borho (steve at borho.org)
http://www.borho.org/~steve/steve.asc
Key fingerprint = 2D08 E7CF B624 624C DE1F  E2E4 B0C2 5292 F2C6 2C8C


More information about the Mercurial-devel mailing list