logilab使用的开发工具集
logilab-devtools的Python项目详细描述
一套旨在帮助开发过程的工具,包括:
一套Elisp糖果,包括:
- an emacs mode for pycover files
- an emacs mode for ChangeLog files
- a small set of emacs shortcuts used at logilab
ingrsh.(z)sh
要源代码的shell库。它提供一个移动的ingrsh命令 将当前工作目录放入给定的shell存储库并设置 相应的PYTHONPATH和CDPATH环境变量。
GUESTREPODIR环境变量定义要搜索的位置 外壳(默认为$HOME/hg/grshells/)
hgext/jpl.py
一个Mercurial扩展,它简化了与jpl forge的交互。
应该从Mercurial配置文件中启用扩展名:
[extensions] jpl = path/to/hgext/jpl/ # or, if it has been installed via the debian package: jpl = [jpl] endpoint = http://www.cubicweb.org
endpoint引用cwclientlib中的配置项 配置设置。有关详细信息,请参阅cwclientlib文档。
注意
您可以在main中指定默认的jpl/endpoint值 Mercurial配置文件(~/.hgrc对于Linux系统)。那么 本地配置文件(path/to/repository/.hg/hgrc)可以 覆盖此设置。
警告
此版本的logilab devtools不读取 来自mercurial配置文件的身份验证凭据; 它完全依赖cwclientlib进行访问和身份验证 朝向cubicweb实例。
任何灵活的配置,如:
[lgl] forge-url = <url> auth-xxx = xxx
应替换为:
[jpl] endpoint = <url> # or the endpoint ID
再加上~/.config/cwclientlibrc文件中的配置项,其中 已设置身份验证凭据。请参阅cwclientlib文档。
命令
ask-review: | Allows to ask review for a Patch produced by a changeset, eg.: ^{pr 5}$ |
---|---|
assign: | Assign patches corresponding to specified revisions to a committer. |
backlog: | Show the backlog (draft changesets) of specified committer. |
list-tc: | List TestConfig available for project linked to the repository. |
make-ticket: | Create new tickets for the specified revisions. |
show-review: | Show review status for patches corresponding to specified revisions, eg.: ^{pr 6}$ |
start-test: | Start Apycot tests for the given revisions, eg.: ^{pr 7}$ |
tasks: | Displays tasks requested by reviewers on a patch on a forge. |
revset函数
这些谓词从项目的forge中检索信息 (cubicweb jpl实例)并作为revset函数公开。
tasks: | Changesets linked to tasks to be done. |
---|---|
reviewed: | Changesets that are linked to reviewed patches in the forge |
inversion: | Changesets that are linked to patches linked to tickets of given version+project |
示例:
$ hg log -r "reviewed()" $ hg log -r "inversion(3.18.0)" $ # display tasks on patches that are meant to be in next 3.20.8 version: $ hg tasks -r "tasks() and inversion(3.20.8)" $ # display patches ready for integration in 3.20.8: $ hg show-review -r "reviewed() and inversion(3.20.8)" $ # are there any pending commit on my branch that is not at his place? $ hg log -r "draft() and ::. keyword(closes) and not inversion(3.20.8)"
模板
tasks: | List of Strings. The text of the tasks and comments of a patch. Examples:
|
---|