From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] trunk r117980: Merge from emacs-24; up to r117522.
Date: Wed, 01 Oct 2014 11:52:58 +0900 [thread overview]
Message-ID: <87sij8v6ut.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <jwv38b9kn5z.fsf-monnier+emacsdiffs@gnu.org>
Stefan Monnier writes:
> Sadly, the only DVCS which knew how to keep track of partial (aka
> cherry-picked) merges were DaRCS and Arch, AFAIK.
But in those DVCSes you lose the DAG, and gain exponential behavior
for your trouble. (Speaking of Darcs in the past tense isn't very
accurate, either, although at the moment they're in maintenance mode.)
Tom Lord's revc (aka Arch v3) was showing theoretical promise in this
direction: he based object storage (Arch's revision archive) on git's,
but also was able to manipulate changes (revid pairs). I'm not sure
if he planned to add token replacement and similar Darcs-y features.
> FWIW, Git suffers from the same problem, AFAIK. Tho maybe Git has found
> a clever way to handle them OK in practice, even though it doesn't
> actually keep track of them either (along the lines of what it does for
> file renames).
No, there's no trick in git for this. It's just that the git
community has a culture of rebasing that is much more tolerant of loss
of actual history (as seen by the developer in a private workspace) as
long as the notional history (post rebase and pushed to public) makes
sense to the community. In this view, a cherry-pick is sort of viewed
as a "reinvention" of the patch, even though it's actually a copy.
It's possible to do the equivalent of "bzr merge -i" in git using
filter-branch, but it's somewhat complex and there's no built-in
command for it. git just counts on the locality of commits in a
branch (ie, commits different branches touch the same code
infrequently) when doing a three-way merge. I don't think a
patch-tracking VCS like Darcs would do a better job, though -- you'd
end up with a conflict in that case too.
For future reference:
Git has an option to cherry-pick which inserts the revision[1]
cherry-picked in the commit log automatically. I believe that changed
from default on to default off years ago, though. So I guess it
wasn't considered as useful as saving bytes (and lines in log message
displays). As Eli points out, it's *not* recorded in the DAG, maybe
that's why.
Footnotes:
[1] Indicating the change relative to the parent, not the state of
the tree.
next prev parent reply other threads:[~2014-10-01 2:52 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 [this message]
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
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=87sij8v6ut.fsf@uwakimon.sk.tsukuba.ac.jp \
--to=stephen@xemacs.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.