Generate externals from a repository
Project description
Use the –help option for usage details:
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]
The source distribution is also a zc.buildout that installs the script locally for use without affecting the system python installation:
$ easy_install --editable --build-directory=foo z3c.repoexternals $ cd foo $ python bootstrap/bootstrap.py -v $ ./bin/buildout -v $ ./bin/repoexternals --help
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
z3c.repoexternals-0.3.tar.gz
(9.7 kB
view details)
Built Distribution
z3c.repoexternals-0.3-py2.4.egg
(19.3 kB
view details)
File details
Details for the file z3c.repoexternals-0.3.tar.gz
.
File metadata
- Download URL: z3c.repoexternals-0.3.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74133408572c53091057cbe0b00f2490cd1772d2de76155d25199e8ed5cb2a7e |
|
MD5 | 0d201abf4f73897a3d1d9eaacdd0b710 |
|
BLAKE2b-256 | 85cfd5723a8ba9b444ebbdd82586fbd4e9a8666e75fa07459a804d2a36d9dc86 |
File details
Details for the file z3c.repoexternals-0.3-py2.4.egg
.
File metadata
- Download URL: z3c.repoexternals-0.3-py2.4.egg
- Upload date:
- Size: 19.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e26c0f6a231f5ca58af1e0acd3849a6d96e230bb0df577ce1648ea1181e24da |
|
MD5 | 51a5e0bd9ff23d4f5dd14cce47b8d3a7 |
|
BLAKE2b-256 | 5f7a70bd80967e473081b6258946a74ceca893afd3f3883b97a26882bbbca2ed |