From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org, monnier@iro.umontreal.ca, yuri.v.khan@gmail.com
Subject: Re: [Emacs-diffs] trunk r117980: Merge from emacs-24; up to r117522.
Date: Thu, 02 Oct 2014 10:48:15 +0900 [thread overview]
Message-ID: <87egurutr4.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <83k34jkcxy.fsf@gnu.org>
Eli Zaretskii writes:
> > Date: Wed, 01 Oct 2014 18:45:14 +0300
> > From: Eli Zaretskii <eliz@gnu.org>
> > Cc: stephen@xemacs.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org
> >
> > > * Imagine a mergy graph on the branch being cherry-picked from. How do
> > > you revert that mergy clump? What if there are merges from that into
> > > the current branch?
> > >
> > > ---o---o---o---o---o---o A
> > > \ /
> > > o---o---o---o B
> > > \ /
> > > o---o
> >
> > Well, figure it out, and you get my thumbs-up!
>
> Btw, it's a bit ironic that while there's a lot of pressure to rebase
> branches instead of merging them, when these issues are discussed,
> suddenly all kind of complex DAGs pop up all over the place. If
> rebasing is the word of the day, then you will almost never see such
> DAGs.
I don't see the irony yet (the people who push rebasing are not
necessarily the same people who are explaining the technology), but
that's probably because I explain this as a difference of culture in
the git community vs. the Bazaar community.[1] Same point, different
point of view.
The real problem as Stefan points out is that in these VCSes the
source of a cherry-pick is *not* part of the formal metadata of the
new commit (git cherry-pick -x is a typical *in*formal way to record
the information).
Git does have a (rarely used AFAIK) concept of "grafts", which are an
out of band record of equivalent (as revisions) commits. This doesn't
work terribly well (if the commits point to different trees, the
relation is actually asymmetric), and is mostly useful in cases where
filter-branch is used to remove some commits near the root of the DAG,
but does not affect the trees (ie, it just reparents downstream
commits to earlier ancestors).
What we want here is a way to equivalence changes. The obvious
representation of a change would be the corresponding SHA1 pair.
(However, as Darcs points out, there are useful "patches" that have
effects that cannot be reproduced using diff and patch (and the
token-replace patch is actually implemented in Darcs). Whether those
patch types are "useful enough" probably depends on the language, the
project, and the programmers.)
Then the question would be how to use that information later. Git
developers evidently don't have an idea or have an idea but decided it
wasn't terribly useful compared to the alternative (merge when you
care about history-in-place, rebase when you don't, where "you" refers
to a project-wide consensus or it all falls down).
Footnotes:
[1] Speaking of irony, has anybody else noticed the irony of calling
the bzr development process "Bazaar"?
next prev parent reply other threads:[~2014-10-02 1:48 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <E1XYpeB-0002D6-5f@vcs.savannah.gnu.org>
2014-09-30 15:56 ` [Emacs-diffs] trunk r117980: Merge from emacs-24; up to r117522 Stefan Monnier
2014-09-30 16:23 ` Bill Wohler
2014-09-30 16:53 ` Eli Zaretskii
2014-09-30 18:04 ` Stefan Monnier
2014-10-01 2:52 ` Stephen J. Turnbull
2014-10-01 14:44 ` Eli Zaretskii
2014-10-01 15:22 ` Yuri Khan
2014-10-01 15:45 ` Eli Zaretskii
2014-10-01 15:49 ` Eli Zaretskii
2014-10-02 1:48 ` Stephen J. Turnbull [this message]
2014-10-01 17:44 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87egurutr4.fsf@uwakimon.sk.tsukuba.ac.jp \
--to=stephen@xemacs.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=yuri.v.khan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.