Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

webkitscmpy-7.0.2.tar.gz (215.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webkitscmpy-7.0.2-py3-none-any.whl (307.8 kB view details)

Uploaded Python 3

File details

Details for the file webkitscmpy-7.0.2.tar.gz.

File metadata

  • Download URL: webkitscmpy-7.0.2.tar.gz
  • Upload date:
  • Size: 215.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for webkitscmpy-7.0.2.tar.gz
Algorithm Hash digest
SHA256 b76b9388dc96a29217b90bc8e767dae07e0c7f4f8da2a6d854a5adef69614a1d
MD5 91bc21b5c090b696d88fd817470390d5
BLAKE2b-256 f85c375186c5c2ff1df7576bc25cf659669a337845af111a6be4146df8909a0a

See more details on using hashes here.

File details

Details for the file webkitscmpy-7.0.2-py3-none-any.whl.

File metadata

  • Download URL: webkitscmpy-7.0.2-py3-none-any.whl
  • Upload date:
  • Size: 307.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for webkitscmpy-7.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9e88f6da246981edfa12f7d06b7b4dc2e4faf0f28c2f8d5253251ad1e2a1c49a
MD5 5d5f35bb9a748ee95eb032cce7d17256
BLAKE2b-256 ebced910921b641324cd5c5fb1e001f203b2e3a351b59b0c87dd1fec419c4973

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page