Graft can't collapse and rebase --collapse does not record all metadata
Chingis Dugarzhapov
chingis.dug at gmail.com
Mon Jan 19 16:11:23 UTC 2015
Have you tried histedit extension? It keeps commits messages after collapse
("fold" there),
and should be enough in your case when used after graft.
On Mon, Jan 19, 2015 at 7:25 AM, Lawrence Stewart <lstewart at room52.net>
wrote:
> Hi all,
>
> I want to be able to cherry pick a related set of commits from our dev
> branch up to our prod branch, but collapse them into a single commit on
> the prod branch.
>
> Graft allows me to apply them as individual commits which does the job
> but is overly verbose and not a great solution, especially when many
> commits are involved.
>
> Rebase --collapse --keep -r <rev1> -r <rev2> -r <rev3> conceptually and
> practically does what I want, but does not record all of the revs in the
> extra meta data, only rebase_source=<rev3>. As such merge and rebase
> logic is unaware that <rev1> and <rev2> have been pulled up.
>
> hg export | hg import can be used to apply multiple patches to the
> working copy and commit as a single commit, but obviously is gross and
> doesn't record any meta data at all which is bad.
>
> I think what I would conceptually like is graft to grow a --collapse
> flag which would apply all revs on the graft command line to the working
> copy and then commit as one, also recording all revs in the metadata for
> the commit.
>
> Is there already a canonical way to do what I'm talking about that I've
> missed, or would it be worthwhile opening a feature request against
> graft for a --collapse option?
>
> Cheers,
> Lawrence
> _______________________________________________
> Mercurial mailing list
> Mercurial at selenic.com
> http://selenic.com/mailman/listinfo/mercurial
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20150119/02acf229/attachment-0002.html>
More information about the Mercurial
mailing list