[Numpy-discussion] 1.10-devel is open

Nathaniel Smith njs at pobox.com
Mon Jul 7 09:25:58 EDT 2014


On 7 Jul 2014 14:12, "Charles R Harris" <charlesr.harris at gmail.com> wrote:.
>
> Yes, what I did was like one big cherry-pick. But I think we end up in
the same place with two divergent branches. I think git history is just a
string of changesets and each changeset has a hash. Same hash, same
changeset, and I think that was preserved, so in that sense history was
preserved.

No, git history hashes are effectively a hash of <history hash of base
revision, new changes>. So when you rebase, you keep the same changes but
move them to be based on a different base revision. This means that the
rebased changes get new hashes, and git has no idea that the changes are
related.

If you merge, then git marks the original changes as being parents of the
merge node, so it can answer questions like "what changes have been applied
to maintenance/1.9.x since it branched from master?", and can do better
cherrypicks because it can use a more recent common ancestor.

-n
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20140707/40813a12/attachment.html>


More information about the NumPy-Discussion mailing list