[PATCH cubicweb V2] Document mercurial configuration for contributing

Laurent Peuch cortex at worlddomination.be
Thu Oct 17 06:28:15 CEST 2019


> >>+
> >>+    [jenkins]
> >>+    url = https://jenkins.logilab.org/
> >>+    job = cubicweb-default
> >>+
> >>+If you don't have ssh access to ``hg.logilab.org``, you can use your own Mercurial server and
> >>+change ``default-push`` and ``publicurl`` accordingly.
> >>+A list of services that provides hosting of Mercurial repositories is available
> >>+on https://www.mercurial-scm.org/wiki/MercurialHosting.
> >>+
> >>+* ``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

FYI you need to have python-jenkins and brotli libs for it to run and
that doesn't seems to be nowhere in the documentation? You have some
hints here https://hg.logilab.org/master/logilab/devtools/file/tip/setup.py#l97
(but that's another extension, right?)

I also couldn't make it works using mercurial 4.9.1 (but my setup
might be a bit broken), I don't know if it's relevant.

> psychojoker at incubus ~/code/yunohost/ynh-dev/logilab/cubicweb(virtualbox|) hg show jenkins 
> abort: unknown view: jenkins
> (run "hg show" to see available views)
> psychojoker at incubus ~/code/yunohost/ynh-dev/logilab/cubicweb(virtualbox|) hg jenkins      
> Traceback (most recent call last):
>   File "/home/psychojoker/.local/bin/hg", line 43, in <module>
>     dispatch.run()
>   File "/home/psychojoker/.local/lib/python2.7/site-packages/mercurial/dispatch.py", line 99, in run
>     status = dispatch(req)
>   File "/home/psychojoker/.local/lib/python2.7/site-packages/mercurial/dispatch.py", line 225, in dispatch
>     ret = _runcatch(req) or 0
>   File "/home/psychojoker/.local/lib/python2.7/site-packages/mercurial/dispatch.py", line 376, in _runcatch
>     return _callcatch(ui, _runcatchfunc)
>   File "/home/psychojoker/.local/lib/python2.7/site-packages/mercurial/dispatch.py", line 406, in _callcatch
>     unknowncmd=True)
>   File "/home/psychojoker/.local/lib/python2.7/site-packages/mercurial/help.py", line 849, in formattedhelp
>     subtopic=subtopic, unknowncmd=unknowncmd, full=full, **opts)
>   File "/home/psychojoker/.local/lib/python2.7/site-packages/mercurial/help.py", line 804, in help_
>     rst = f(name, subtopic)
>   File "/home/psychojoker/.local/lib/python2.7/site-packages/mercurial/help.py", line 757, in helpextcmd
>     ui.configbool('ui', 'strict'))
>   File "/home/psychojoker/.local/lib/python2.7/site-packages/mercurial/extensions.py", line 796, in disabledcmd
>     paths = _disabledpaths()
>   File "/home/psychojoker/.local/lib/python2.7/site-packages/mercurial/extensions.py", line 628, in _disabledpaths
>     os.path.abspath(pycompat.fsencode(hgext.__file__)))
> AttributeError: 'module' object has no attribute '__file__'

-- 

Laurent Peuch -- Bram



More information about the cubicweb-devel mailing list