public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
From: Rich Freeman <rich0@gentoo.org>
To: gentoo-dev <gentoo-dev@lists.gentoo.org>
Subject: Re: [gentoo-dev] GitLab Feature-Set / Was: devmanual moved to github
Date: Tue, 14 May 2013 10:40:27 -0400	[thread overview]
Message-ID: <CAGfcS_kMOjaK=1gNhyu-170D8bVjfxE2PbA+iBNvrikDuE6Jxg@mail.gmail.com> (raw)
In-Reply-To: <20130514141905.13711.qmail@stuge.se>

On Tue, May 14, 2013 at 10:19 AM, Peter Stuge <peter@stuge.se> wrote:
> Rich Freeman wrote:
>> Gerrit also requires letting the public push, but those pushes go
>> to a contained area and each commit is isolated.
>
> Hm, how do you mean isolated?
>
> Gerrit introduces the convention to create a unique identifier for a
> change the first time a commit is created. If later iterations of
> that same logical change (e.g. a second commit after review) keep the
> Change-Id line from the original commit message then Gerrit knows
> that this commit is a new version of the old one as opposed to an all
> new change.
>

Suppose master is Gentoo Portage.  I clone it, make a change to
package foo, and push that commit to gerrit.  You clone it, make a
change to package bar, and push that commit to gerrit.  Those two
commits go into two different requests and don't interfere (well, they
might when merged if they contain conflicts - no avoiding that).  If
at that point somebody else clones the repo they get the official repo
without either of our changes, until at some point our changes get
merged.

It is true that revisions of commits do update each other, but this is
generally desirable.  What is important is that each logical change
stays isolated.

The only way to do this with branching is to have a branch per change
(which could be merged and deleted of course).  Gitlab doesn't seem to
support this though - I don't think there is any safe way to allow
random public users to create branches, and of course if anybody does
this they are published to the world.  Gerrit keeps changes more
tucked away, so that everybody is working off the official repo.  If
you just have everybody share one public branch then it will be a
hodge-podge of commits that require a lot of cherry-picking to work
with.  The public branch itself might not even work, or it might need
constant cleanup.  It might even contain trojans so cloning it would
be at your own risk (it would be safer to clone master and push to
public, which means that everybody is stepping on each other's toes).

Branches do make sense if you have groups working together on a single
change.  I'd encourage them for this use.  However, in the case of
isolated patches the Gerrit model seems better.

Again, I could be missing some Gitlab feature.

>
> While Gerrit is probably most often used as a web application, it's
> possible to perform most operations, including review, submit and
> reject, via SSH. The only thing missing from the SSH interface is
> doing inline review. The web interface allows writing review comments
> per line in the commit, this is unfortunately not possible via SSH.
>

I know a lot of projects like Gerrit (Cyanogenmod comes to mind).
Sure, it is Java, but I'd think it could be reasonably well-contained
in a VM/etc.  It could even be hosted - as long as we have backups/etc
and can recover to our own infra I'd consider that pretty low-risk.

Rich


  reply	other threads:[~2013-05-14 14:40 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-12 11:32 [gentoo-dev] devmanual moved to github Markos Chandras
2013-05-12 13:12 ` Rich Freeman
2013-05-12 13:27   ` Peter Stuge
2013-05-12 15:02     ` Ben de Groot
2013-05-12 15:15       ` Markos Chandras
2013-05-12 15:12     ` Diego Elio Pettenò
2013-05-12 15:02   ` [gentoo-dev] " Duncan
2013-05-12 13:15 ` Ulrich Mueller
2013-05-12 15:04   ` Markos Chandras
2013-05-12 15:17     ` Peter Stuge
2013-05-12 15:48     ` Ulrich Mueller
2013-05-12 15:54       ` Markos Chandras
2013-05-12 16:08         ` Rich Freeman
2013-05-12 16:12           ` Michael Palimaka
2013-05-14 15:44           ` William Hubbs
2013-05-14 17:51             ` Rich Freeman
2013-05-12 16:55         ` Ulrich Mueller
2013-05-12 16:04       ` Mike Gilbert
2013-05-12 17:20     ` Peter Stuge
2013-05-12 17:32       ` Michael Palimaka
2013-05-12 18:24         ` Peter Stuge
2013-05-12 18:31           ` Michael Palimaka
2013-05-12 22:12           ` Alexander Berntsen
2013-05-12 22:21             ` Peter Stuge
2013-05-12 22:24               ` Alexander Berntsen
2013-05-12 22:37                 ` Peter Stuge
2013-05-13  7:09                   ` Alexander Berntsen
2013-05-12 22:38                 ` W. Trevor King
2013-05-13  6:32                 ` Ralph Sennhauser
2013-05-13  7:07                   ` Alexander Berntsen
2013-05-13  7:40                     ` Ralph Sennhauser
2013-05-13  7:47                       ` Alexander Berntsen
2013-05-13 13:28                   ` Ciaran McCreesh
2013-05-14 15:55               ` William Hubbs
2013-05-13 12:38             ` Greg KH
2013-05-13 12:42               ` Alexander Berntsen
2013-05-13 21:59                 ` Duncan
2013-05-12 17:33       ` Theo Chatzimichos
2013-05-12 18:22         ` Peter Stuge
2013-05-12 19:18       ` [gentoo-dev] GitLab Feature-Set / Was: " sascha-ml
2013-05-14 13:59         ` Rich Freeman
2013-05-14 14:19           ` Peter Stuge
2013-05-14 14:40             ` Rich Freeman [this message]
2013-05-13  3:38     ` [gentoo-dev] " Arun Raghavan
2013-05-12 15:13   ` Richard Yao
2013-05-12 15:38     ` Ulrich Mueller

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='CAGfcS_kMOjaK=1gNhyu-170D8bVjfxE2PbA+iBNvrikDuE6Jxg@mail.gmail.com' \
    --to=rich0@gentoo.org \
    --cc=gentoo-dev@lists.gentoo.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox