[darcs-users] quadratic _user_ time when recording!

Mark Williamson mark.williamson at cl.cam.ac.uk
Thu Jan 10 16:16:21 UTC 2008


> > Emacs and darcsum mode alleviate this quite a bit, becauase you get to
> > navigate the list of hunks in the editor and select/deselect the ones you
> > want.
>
> fwiw, this is why the --gui option was in darcs, but noone wanted to
> maintain it (including myself), so it got dropped.  A lot of the
> trouble was the use of wxhaskell, which is pretty severely
> unmaintained.

I've been thinking about spending some time adding Darcs support to Steve 
Borho's Qct commit tool (http://qct.sf.net).  It's the best commit tool I'm 
aware of and written in Python / PyQt4 so quite hackable.

It already has a plugin API for supporting multiple SCM backends.  It also has 
some hunk committing support in the UI already (which it implements for 
systems that don't support it natively), which it ought to be possible to 
leverage one way or another.

AFAIK the current hunk committing interface 

The quick but slightly gross way of doing this would be to hack Qct so that it 
uses its current hunk committing mode (which simply creates a private copy of 
the original file from your working tree, then asks you which hunks to 
commit, then modifies the file in the working tree to contain only those), 
then just call out to darcs record --all.  That'd do the job but it would be 
a bit unpleasant!

A nicer but more complex implementation would be to get Qct to use darcs' hunk 
committing directly.

Cheers,
Mark

-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!


More information about the darcs-users mailing list