Skip to main content

Library to read, manipulate and write RCS files.

Project description

EditRCS is a library to with functions to read RCS files into Python classes Rcs and RcsDelta, and to manipulate them and write them to a new RCS file.

It is intended to be used to manipulate RCS files in ways that the RCS tools don’t support, but it requires some knowledge of how RCS files work rather than being a polished command-line tool.

See rcsfile(5) for RCS file format definition.

Example scripts in the examples directory include:

checkout_start: print the earliest version of a RCS file to standard output.

rcs_join: produce an RCS file with the history of one file followed by that of a second file.

rename_user: replace an old user name with a new one for each revision checked in by that user.

pivot_branch: given a branch head and a first-level branch head off that, swap the sub-branch and the main branch.

Limitations: I’m going with the 5.9.2 version of the manpage, and ignoring the newphrase in the earlier (e.g. 5.6) specifications for now. It is written to be simple rather than optimised for speed or space.

INSTALLATION

To install as a Python module run:

python -m pip install /path/to/editrcs

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

editrcs-0.5.2.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

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

editrcs-0.5.2-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

Details for the file editrcs-0.5.2.tar.gz.

File metadata

  • Download URL: editrcs-0.5.2.tar.gz
  • Upload date:
  • Size: 24.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.8.0 urllib3/1.26.9 tqdm/4.19.5 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.9

File hashes

Hashes for editrcs-0.5.2.tar.gz
Algorithm Hash digest
SHA256 01790b57566ab6d19cf35e1a87ad406ef12a9ea6c305313e285bf6608a22827e
MD5 a4695ac333b9b007655ab0c4afa0cee0
BLAKE2b-256 649ec85659d8787721349a925815990e0f55acd4384d250c66bfade79d2fd747

See more details on using hashes here.

File details

Details for the file editrcs-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: editrcs-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 23.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.8.0 urllib3/1.26.9 tqdm/4.19.5 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.9

File hashes

Hashes for editrcs-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aa231542f0e4ec43d28c257630f8f7802937b908a53192ab16e9cb346eb91673
MD5 195fa446c3242432c953bb2bc8d78caf
BLAKE2b-256 fef74185b19d9fc578c59317a5b128f1d240c1821ae085ce83fb687c0c2f7d9b

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