hg fold is not intuitive

Harvey Chapman hchapman-hg at 3gfp.com
Thu Nov 21 11:57:04 CST 2013


On Nov 21, 2013, at 12:36 PM, Harvey Chapman <hchapman-hg at 3gfp.com> wrote:

> $ hg fold -r 1:3
> 3 changesets folded
> 1 new unstable changesets
> $ hg gl
> o  changeset:   5:fd3700b9b46b tip   draft
> |               fold b-d
> | @  changeset:   4:00bd9fbd59da    draft
> | |               e
> | x  changeset:   3:920bf9496da5    draft
> | |               d
> | x  changeset:   2:111bcf660d83    draft
> | |               c
> | x  changeset:   1:0a80b76598ee    draft
> |/                b
> o  changeset:   0:8c66fa3030c3    draft

It does seem that the fold command should have auto-evolved this graph. Even without that, the output of “hg evolve” without “—any” is a little weird to a new user (of the evolve extension):

    $ hg evolve
    nothing to evolve here
    (1 troubled changesets, do you want --any ?)
    $ hg up 5
    1 files updated, 0 files merged, 0 files removed, 0 files unresolved
    $ hg evolve
    move:[4] e
    atop:[5] fold b-d
    merging file

In keeping with the ideal I tout most about Mercurial, this should be user-friendly.

[ Sorry about the double-post earlier ]


More information about the Mercurial mailing list