Charlie Li on 20 Dec 2018 18:42:34 -0800
|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PLUG] Git: net time gain or loss?
|
- From: Charlie Li <ml+PLUG@vishwin.info>
- To: plug@lists.phillylinux.org
- Subject: Re: [PLUG] Git: net time gain or loss?
- Date: Thu, 20 Dec 2018 21:42:24 -0500
- Autocrypt: addr=ml+PLUG@vishwin.info; prefer-encrypt=mutual; keydata= mQINBFt7iHUBEADCorTixbMGuHd9WYSKCELlv/TFcRtvpHUw/n9LtXzKixUUwl7iuMFMYTz3 QXePX0Twq4jCQYySfcxWbPkLsSYlPOkaGQ+XytfmIHoqG5ba4i1fp+F41is0oCtLt1+oL84j NKUd13em/JWd+PJeQbSTVnHbT2yaAi7vqWw5WKVaMExjfPGU5TArV46wSRU6Zuy1ZX66q0q5 dPzeBdeKYWJE8aGtyi3pYUpKUOX4gxiNetf6leDFZ4OsexWaRdU0n8fId5d1qwjAE3lOwV5z 0Ilt8t4iXtX3JL3DAQyLZIeXHIg9O3rrpPMXQWSp2/5g39PohNk7farbhcpIKxuDN+L5N6U9 OxNHBSCv9FGDO4R/mw3YwJCovDzsF7RSyXQDIY36yjdh2uTLZ0uD5Ci/DPmJUySFLRvpqWnQ M7V5cYhdqDfcElGpRbi8JZQVYRJjvI5Jj0byG98KeaD0YFxKqmmm+Oh+xWXE7xt/DsBoZeZJ BFP84LvFbwQqprvI+sg+1z2+JIgNbYwl8VaYzfyGnqTEXTOsQYEKTdKA9MODSAsN31MlQICe CIHZV+OwOqH1KQ/mZp59AnpXAmj4T94bnahE9yJtVW/qglX/nTeFNUdu5MyEgkeB0x7mx+t0 3hE20yp/NbyvG1T/o53NHwHiURC/8Fxd1NWPZ6n4X8npQn6iyQARAQABtDVDaGFybGllIExp IChQTFVHIG1haWxpbmcgbGlzdCkgPG1sK1BMVUdAdmlzaHdpbi5pbmZvPokCTgQTAQgAOBYh BP9/wqq+WvuNT2xG/o5weN7yA6tsBQJbe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KqLD/FPA+44XHOceMlVvEQQbQfmuat6HVnRZ4zCxJuMLcQR/5kjf1CkXBUgbykPBcU4 KV+GMXM=
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed; d=vishwin.info; h=subject :to:references:from:message-id:date:mime-version:in-reply-to :content-type; s=fuccboi12; bh=ZKZmOqCF86drLcHO7rJ3TBTD3QQybBy6Q KEqnadtnqA=; b=bF2I/yh/MgmYC68sDvWfTDiNZjodOAxT/eNJY7bA7Sc6Kuazm PrtbFPxCzyDDXiel2+5uJUueoYtohvLmzWzLRITSnSXOpwdorcXU7rDq+IAoSqRZ FP5onbqokL0SURBuTaWxk7gjc5p6FQ3ZSijfdY3bMD1bHyyKXRp4pOKDszm0RAyl hDQsfcfUekOPcK3PfYbQzqRGRp3/xj0f34j2oLCUNv5b/9oR+Pt6cRwv3kApqFeJ PeKJ0I463iAUUo08eWlHQcmbeDVY9iDdPk+VpEDUZW8lFeSOw5E1G2Pt7Be21ZjD yx7iCsEXFBxZjmD1waRSQP1LaBnv6AlfddBqA==
- Openpgp: preference=signencrypt
- Organization: PLUG mailing list
- Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
- Sender: "plug" <plug-bounces@lists.phillylinux.org>
- User-agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0
On 20/12/2018 21:23, Aaron Mulder wrote:
> On Thu, Dec 20, 2018 at 8:23 PM JP Vossen wrote:
>> I really, REALLY hate the digest thing! You can't tell by looking at
>> two of them which is old and which is new, and THAT leads to all kinds
>> of contortions in the interface to hack-around that problem.
>
> It doesn't seem like incrementing numeric IDs is workable for the
> distributed model. I'd have my set of numbers in my local repo, you'd
> have your set of numbers in yours, and then when we both pushed to the
> remote repo, it would be a conflicting mess.
>
Indeed not. Even in mercurial the revision hashes are definitive, while
the linear revision numbers are local to each repository and are only
there for convenience purposes.
>> I can't talk about rebase, because I have to admit that's one Git aspect
>> that I do not fully understand and which seems like it's nothing but
>> razor blades to me.
>
> Doesn't that also come with being distributed? If we both have local
> commits on the same branch and you push to remote first, how are we
> going to get my code onto the remote? If it just takes my push, then
> we end up with a mix of code on remote that nobody's actually seen
> before, which may or may not actually compile/work. So I sort of have
> to merge your changes and review before I can push mine.
>
Mercurial does not allow history rewriting in any form by default. You
have to explicitly enable extensions (most if not all come with
mercurial itself) to do that; rebase counts as history rewriting in this
case. [And rebase in mercurial is really implemented as a series of
revision grafting (cherry-picking) and stripping, both of which are
"dangerous" history rewriting operations.]
> How does Hg or Bzr handle this kind of thing (multiple developers
> pushing local commits on the same branch to remote) better?
>
Mercurial has the concept of multiple heads, which are just revisions
without descendants. In this case, each developer committing will have
created their own head, which all share a common parent.
Branches in mercurial are similar to subversion or CVS branches, not git
branches. The aforementioned git branch near-equivalent in mercurial are
bookmarks, which are essentially mutable tags that follow your latest
commit so long as you've activated said bookmark. Bookmarking and
multiple heads go rather hand-in-hand; you can have a head without a
bookmark, it won't get garbage collected like git does, but you may have
a hard time finding it when you haven't activated it in a while and
pushed to other heads in the meantime.
--
Charlie "ENOIDEA" Li
(This email address is for mailing list use only; replace local-part
with vishwin for off-list communication)
Attachment:
signature.asc
Description: OpenPGP digital signature
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug