all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Private branch grafts
@ 2014-03-09 21:32 Eric S. Raymond
  2014-03-14  1:54 ` David Reitter
  0 siblings, 1 reply; 3+ messages in thread
From: Eric S. Raymond @ 2014-03-09 21:32 UTC (permalink / raw)
  To: emacs-devel; +Cc: ":", David Reitter

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Private branch grafts
  2014-03-09 21:32 Private branch grafts Eric S. Raymond
@ 2014-03-14  1:54 ` David Reitter
  2014-03-14  4:25   ` Eric S. Raymond
  0 siblings, 1 reply; 3+ messages in thread
From: David Reitter @ 2014-03-14  1:54 UTC (permalink / raw)
  To: Eric S. Raymond; +Cc: ":", emacs-devel

[-- Attachment #1: Type: text/plain, Size: 2500 bytes --]

Eric,
Thanks for your work.  Is there a version of the converted repository that we can inspect?

Thanks,
David

On Mar 9, 2014, at 5:32 PM, Eric S. Raymond <esr@thyrsus.com> wrote:

> 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


[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 4151 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Private branch grafts
  2014-03-14  1:54 ` David Reitter
@ 2014-03-14  4:25   ` Eric S. Raymond
  0 siblings, 0 replies; 3+ messages in thread
From: Eric S. Raymond @ 2014-03-14  4:25 UTC (permalink / raw)
  To: David Reitter; +Cc: emacs-devel

David Reitter <david.reitter@gmail.com>:
> Thanks for your work.  Is there a version of the converted
> repository that we can inspect?

Not yet. but I'm going to do a conversion run tonight that will produce one 
I can push to gitorious for public inspection tomorrow or Saturday.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-14  4:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-09 21:32 Private branch grafts Eric S. Raymond
2014-03-14  1:54 ` David Reitter
2014-03-14  4:25   ` Eric S. Raymond

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.