跳转到主要内容

从仓库生成外部链接

项目描述

使用 –help 选项查看使用详情

usage: repoexternals [options] url_or_path

Recursively retrieves subversion directory listings from the url or
path and matches directories against a previous set of svn:externals
if provided then against regular expressions and generates
qualifying svn:externals lines.  The defaults generate a set of
svn:externals for all the trunks in a repository and keeps them up
to date with the repository as new trunks are added when the
previous externals are provided thereafter.

options:
  -h, --help            show this help message and exit
  -v, --verbose         Output logging to standard error. Set twice
                        to log debugging messages.
  -p FILE, --previous=FILE
                        If provided, only URLs in the repository not
                        included in the previous externals will be
                        included. If the filename is '-', use
                        standard input.  Valid svn:externals lines
                        beginning with one comment character, '#',
                        will also affect output.  This is useful,
                        for example, to prevent lengthy recursions
                        into directories that are known not to
                        contain any desired matches.  The file is
                        read completely and closed before anything
                        is output, so it is safe to append output to
                        the previous file:
                        "repoexternals -p EXTERNALS.txt http://svn.foo.org/repos/main >>EXTERNALS.txt".
  -i REGEXP, --include=REGEXP
                        Directory names matching this python regular
                        expression will be included in output and
                        will not be descended into.
                        [default: (?i)^((.*)/.+?|.*)/trunk$]
  -e REGEXP, --exclude=REGEXP
                        Directory names matching this python regular
                        expression will be excluded from output and
                        will not be descended into. Include
                        overrides exclude.  [default:
                        (?i)^.*/(branch(es)?|tags?|releases?|vendor|bundles?|sandbox|build|dist)$]
  -m TEMPLATE, --matched-template=TEMPLATE
                        The result of expanding previous file URL
                        matches with the include regular expression
                        through this template is added to the set of
                        previous URLs excluded from output and
                        descending.  The default will add the
                        parents of trunks to the set of previous
                        URLs excluded.  [default: \1]
  -t TEMPLATE, --parent-template=TEMPLATE
                        The result of expanding previous file URL
                        matches with the include regular expression
                        through this template is removed from the
                        set of matched previous URLs excluded from
                        output and descending. The default ensures
                        that directories containing trunks within a
                        directory that contains a trunk are not
                        excluded.  [default: \2]
  -d INT, --depth=INT   The maximum directory depth to descend to.
                        WARNING: large values can greatly increase
                        run time.  [default: 5]
  -s INT, --pool-size=INT
                        The number of concurrent svn clients.
                        WARNING: large values can DOS the
                        repository.  [default: 5]

源代码发行版也是一个 zc.buildout,它会将脚本本地安装以供使用,而不会影响系统Python安装

$ easy_install --editable --build-directory=foo z3c.repoexternals
$ cd foo
$ python bootstrap/bootstrap.py -v
$ ./bin/buildout -v
$ ./bin/repoexternals --help

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源代码发行版

z3c.repoexternals-0.3.tar.gz (9.7 kB 查看哈希值)

上传时间: 源代码

构建发行版

z3c.repoexternals-0.3-py2.4.egg (19.3 kB 查看哈希值)

上传时间: 源代码

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面