logilab使用的开发工具集

logilab-devtools的Python项目详细描述


一套旨在帮助开发过程的工具,包括:

  • tools to check and build source and/or Debian packages
  • provides integration assistance to work with CubicWeb, Mercurial and GuestRepo.

一套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存储库并设置 相应的PYTHONPATHCDPATH环境变量。

GUESTREPODIR环境变量定义要搜索的位置 外壳(默认为$HOME/hg/grshells/

GRmerge/标记合并

用于.hgguestrepo和.hgtags文件的Mercurial合并工具 分别是。

必须从Mercurial配置文件激活它们:

[merge-patterns]
.hgguestrepo = grmerge

[merge-tools]
grmerge.executable = path/to/grmerge
grmerge.args = $local $base $other -o $output

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:

  • display all tasks (and comments) of every patch:

    ^{pr 9}$
  • display the first line of the description and the first line of every task not yet done for draft changesets written by alain that are not yet reviewed:

    ^{pr 10}$

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何在数据库中插入行时自动发送电子邮件?   从进程输出读取的Java问题   java质疑StyledDocument和JTextPane之间的关系,以及接口的正确使用   java错误getPlayer(args[0]);   java如何使Spring引导在重新打包的WAR中包含清单文件?   Java中的除法与模   java使用2d数组和JfreeChart制作散点图   java扩展SonarQube FindBugs插件和自定义FindBugs插件   javaspring:hibernate+ehcache   具有不正确的equals和HashCode实现的java HashMap   java Jaspersoft报告网。旧金山。jasperreports。发动机例外:net。旧金山。jasperreports。发动机填满JRepressionEvalException:计算表达式时出错   java如果输入与其变量不匹配,如何添加错误   在java中使用简单数组[]实现队列   无法启动上下文路径/hsx上的java FAIL应用程序