Alternative name for histedit

Pierre-Yves David pierre-yves.david at logilab.fr
Wed Oct 17 13:26:00 CDT 2012


On Wed, Oct 17, 2012 at 01:11:01PM -0500, dukeofgaming wrote:
> Hi,
> 
> I've started looking into the histedit extension and I think it is awesome,
> but I feel the command name is a little awkward in comparison to all other
> commands, which are a simple and to-the-point word of what is being done.
> 
> I think "rewrite" could be a good fit (e.g. hg rewrite --outgoing)
> 
> I know that I can just make an alias, but I felt like sharing this.
> 
> Regards,
> 
> David


changing the name would allow to changes the semantic of some arguments

    $ hg histedit --rev <rev>

    currently means edit all revision in "<rev>::."

This lead to very confusing stuff like:

    $ hg histedit --rev outgoing()

    currently means edit all revision in "tip(outgoing())::."

I would prefer to have:

    $ hg rewrite --rev <revset>

    meaning edit all revision in "<revset>".

    (possibly not caring about the descendant of that at all)

    Much like "hg rebase --rev <revset>" only rebase "<revset>"



-- 
Pierre-Yves David

http://www.logilab.fr/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20121017/0f251f62/attachment.pgp>


More information about the Mercurial-devel mailing list