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有一种制作jre1的方法。8作为jre1运行。7.   java从Android应用程序向AWS S3上传文件   java是一种正确的匿名子类化TimerTask的方法,在run方法中保留对“this”的引用   c#应用程序开发:我应该检查表上的primarykey还是假设它应该在那里?   swing在Java中绘制二叉树如何调用函数   网络编程在Java中通过按钮终止服务器程序   mysql从java创建SQL函数导致异常   java文件系统找不到指定的路径   JavaSpring安全性可用于GET,但不能用于其他方法   带有PDFBox的java标记PDF   Java swing,JButton在第一次按下按钮时不会调整大小,但在第二次按下按钮时会调整大小   java是我的PropertyLoader单例线程安全吗?   java如何在kafka consumer中按内容设置主题?   java优化jtable   从java包创建可执行jar文件   getLastKnownLocation()上的java Android应用程序崩溃   java RestTemplate:如何发送多部分?   JavaDropWizard:从同一个类生成html和json