Library designed to interact with git and svn repositories.
Project description
webkitscmpy
Provides a utilities for interacting with a git or svn repository.
Requirements
- webkitcorepy
- fasteners
- monotonic
- xmltodict
Command Line
The git-webkit
command supports a common set of basic repository manipulations. Most notably:
git-webkit find <ref>
: Print out commit information for a git ref, Subversion revision or identifier.
git-webkit checkout <ref>
: Move the current local repository to the provided git ref, Subversion revision or identifier.
git-webkit canonicalize
: Standardize commit authorship and put identifiers into the commit message.
Usage
The webkitscmpy
library provides a repository abstraction for both local and remote repositories. To instantiate a
repository object, use the local.Scm.from_path
and remote.Scm.from_url
functions.
from webkitscmpy import local, remote
on_disk = local.Scm.from_path(<path>)
subversion = remote.Scm.from_url('https://svn.webkit.org/repository/webkit')
github = remote.Scm.from_url('https://github.com/WebKit/WebKit')
While the abstraction layer is consistent for all implementations not all implementation support every feature. For
example, remote repositories do not have a checkout
command available.
Each repository keeps a list of contributors, which can be primed and passed into the repository object:
from webkitscmpy import local, Contributor
contributors = Contributor.Mapping()
contributors.create('Jonathan Bedard', 'jbedard@apple.com')
local.Scm.from_path(<path>, contributors=contributors)
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
Built Distribution
File details
Details for the file webkitscmpy-7.0.0.tar.gz
.
File metadata
- Download URL: webkitscmpy-7.0.0.tar.gz
- Upload date:
- Size: 199.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 646203639652abe1fac90634e6fff109a388361e8072e7300bbe6dd655386e92 |
|
MD5 | 8a21cf53365ed3637e4535c4bd205442 |
|
BLAKE2b-256 | 160e086ed7bdb2d2e7bd1181addecc0454c874646d1f3071442c1f79d0703619 |
File details
Details for the file webkitscmpy-7.0.0-py3-none-any.whl
.
File metadata
- Download URL: webkitscmpy-7.0.0-py3-none-any.whl
- Upload date:
- Size: 291.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c2ede25537f29e17d5d0f4af278a397865283be56040de234a39fbe784683204 |
|
MD5 | 7aae9ceb6f065eb0308b28a8496b6b6e |
|
BLAKE2b-256 | 50e844abbeac3ae97b2cc479957e4cfbbf2eb16ea1c8f81a26b99cc551309627 |