[GSOC] Interactive patch selection for commit/Mercurial Queues/record/import

Benoit Boissinot benoit.boissinot at ens-lyon.org
Mon Mar 30 07:13:45 CDT 2009


On Mon, Mar 30, 2009 at 08:01:20PM +0800, Justin Peng wrote:
> Hi ,all.
> 
> I've chosen ' Interactive patch selection for commit/Mercurial
> Queues/record/import' as my project idea for this year's GSOC.  To get a
> clearer knowledge about it before submitting my application, I 'm here to
> ask for your comments and advice on it.
> 
> [snip]
>
> C. Apply the filtered patches
> 
> At present, 'RecordExtension[1]' provided by Bryan O'Sullivan has shown a
> framework for interactive patch selection. It works following these steps:
> 1.) Get all changes to process
> 2.) Get a filtered patch in an interactive selection.
> 3.) Backup changed files, so we can restore them in the end.
> 4.) Clean the repo to the original state.
> 5.) Apply the chosen changes to the working directory.
> 6.) Do actual commit.
> 7.) Finally restore backed-up files
> I think this workflow can perform well, and I plan to adopt it in my future
> work, for extension on many of Mercurial's core commands.

I think you should investigate using a memctx() too (to keep the changes
in memory like convert, it's cleaner).

regards,

Benoit


-- 
:wq


More information about the Mercurial mailing list