[PATCH] Document mercurial configuration for contributing

Philippe Pepiot philippe.pepiot at logilab.fr
Tue Oct 15 16:09:47 CEST 2019


We have a list of ssh_keys allowed to push on hg.logilab.org maintained
by logilab sysadmin team.
Also we have "write" and "publish" permission, not everybody can push public changesets.

How you would explain this internal sauce ?

Actually, for just "contributing" without publishing, people can replace "default-push" and "publicurl" to any
repository they are able to write to.

On 15/10/2019, Noé Gaumont wrote:
> I have a question on push with ssh.
> Do we need to allow an ssh key before a user is able to push or does anyone
> can push ?
> 
> If a manual action is required by us. I think we should mention it.
> 
> Noé
> 
> On 15/10/2019 15:40, Philippe Pepiot wrote:
> > # HG changeset patch
> > # User Philippe Pepiot <philippe.pepiot at logilab.fr>
> > # Date 1571146256 -7200
> > #      Tue Oct 15 15:30:56 2019 +0200
> > # Node ID 74fb7e187b76af0fd5940cc4a8c8c2e1f21afdb3
> > # Parent  d242a1692907746187b06dd2c0058d3c6ad8c6c6
> > # Available At https://hg.logilab.org/review/cubicweb
> > #              hg pull https://hg.logilab.org/review/cubicweb -r 74fb7e187b76
> > Document mercurial configuration for contributing
> > 
> > * how to use master/review repositories
> > * how to send the "Available at" command in patchbomb emails
> > * how to use our "jenkins" mercurial extension
> > 
> > Closes #17243538
> > 
> > diff --git a/README b/README
> > --- a/README
> > +++ b/README
> > @@ -78,3 +78,28 @@ a XMPP client: public at conference.jabber.
> >   Mailing list: https://lists.cubicweb.org/mailman/listinfo/cubicweb-devel
> >   Patchbomb extension: https://www.mercurial-scm.org/wiki/PatchbombExtension
> >   Good practice on sending email patches: https://www.mercurial-scm.org/wiki/ContributingChanges#Emailing_patches
> > +
> > +Full .hg/hgrc example for contributors:
> > +
> > +    [paths]
> > +    default = https://hg.logilab.org/master/cubicweb
> > +    default-push = ssh://hg@hg.logilab.org/review/cubicweb
> > +
> > +    [email]
> > +    to = cubicweb-devel at lists.cubicweb.org
> > +
> > +    [patchbomb]
> > +    publicurl = https://hg.logilab.org/review/cubicweb
> > +
> > +    [jenkins]
> > +    url = https://jenkins.logilab.org/
> > +    job = cubicweb-default
> > +
> > +
> > +* ``hg pull`` will pull on master repo (public changesets).
> > +* ``hg push`` will push on review repo using ssh.
> > +* When sending an email to the list, it will add a "Available at" with command
> > +  to pull the draft series on the public repo.
> > +* Using https://hg.logilab.org/master/logilab/devtools/file/tip/hgext/jenkins.py
> > +  mercurial extension, ``hg show jenkins`` display jenkins build status for
> > +  each changeset.



More information about the cubicweb-devel mailing list