[PATCH] hg import/patch: add -e/--edit option to edit commit msg

Matt Mackall mpm at selenic.com
Thu Aug 12 14:36:46 CDT 2010


On Fri, 2010-08-13 at 02:40 +0800, Alecs King wrote:
> On Fri, Aug 13, 2010 at 12:16:04AM +0900, Nicolas Dumazet wrote:
> > On Thu, 12 Aug 2010 18:08:59 +0800
> > Alecs King <alecsk at gmail.com> wrote:
> > 
> > >  mercurial/commands.py |  6 +++++-
> > >  1 files changed, 5 insertions(+), 1 deletions(-)
> > > 
> > > 
> > > # HG changeset patch
> > > # User Alecs King <alecsk at gmail.com>
> > > # Date 1281606413 -28800
> > > # Branch my
> > > # Node ID b7915d29b749fdcf0a77096bd0fa7ed2b766ff7f
> > > # Parent  8223d8a0ae34829c5994320cf5abb5ed1cce0db5
> > > hg import/patch: add -e/--edit option to edit commit msg
> > 
> > This looks okay to me.
> > Any complaints?
> > 
> > A test would be nice I guess :p
> 
> Any hints how to write an iterative test?

I presume you mean interactive. The trick here is to set the editor to a
script that tweaks the file appropriately and check the log. Then you've
made sure the 'editor' gets invoked and its output is used.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list