From: esr@thyrsus.com (Eric S. Raymond)
To: emacs-devel@gnu.org
Cc: ":"@thyrsus.com, David Reitter <david.reitter@gmail.com>
Subject: Private branch grafts
Date: Sun, 9 Mar 2014 17:32:11 -0400 (EDT) [thread overview]
Message-ID: <20140309213211.D4A62380860@snark.thyrsus.com> (raw)
I have built and tested some machinery to solve the Aquamacs
problem. I am describing it on the Emacs list because other
owners of private branches will need to know how it works.
The new feature involved here is "callouts". They solve a problemm
with partial repository writes, in which commits contain mark
references for which the corresponding parent commits are not in the
selection set written out.
Previously, the write code would simply have dumped unaltered mark
values, some of which would become meaningless outside the original repo
context. What reposurgeon now does in that case is replace any
unresolved marks with callouts (which are just action stamps
identifying a date and committer).
An import stream containing callouts cannot be loaded by
git-fast-import. What can happen, though is this: when a stream with
callouts is grafted to another repo, the code tries to resolve all the
callout links in the context of that repo. It looks for a committer
and committer-date match for each callout and, in effect, replaces
it with the corresponding parent mark.
The match attempt (and the graft) will fail if there is no matching
committer/committer-date pair in the repo, or more than one. In that
case (which I expect to be rare and might not occur at all) the
offending callouts will need to be removed or hand-patched with ordinals,
What I will is locate each branch you want to preserve, write it
out as a partial dump with callouts, and graft iyit onto the main
repository in this way.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
The conclusion is thus inescapable that the history, concept, and
wording of the second amendment to the Constitution of the United
States, as well as its interpretation by every major commentator and
court in the first half-century after its ratification, indicates
that what is protected is an individual right of a private citizen
to own and carry firearms in a peaceful manner.
-- Report of the Subcommittee On The Constitution of the Committee On
The Judiciary, United States Senate, 97th Congress, second session
(February, 1982), SuDoc# Y4.J 89/2: Ar 5/5
next reply other threads:[~2014-03-09 21:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-09 21:32 Eric S. Raymond [this message]
2014-03-14 1:54 ` Private branch grafts David Reitter
2014-03-14 4:25 ` Eric S. Raymond
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=20140309213211.D4A62380860@snark.thyrsus.com \
--to=esr@thyrsus.com \
--cc=":"@thyrsus.com \
--cc=david.reitter@gmail.com \
--cc=emacs-devel@gnu.org \
/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.