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.3.tar.gz (24.8 kB view details)

Uploaded Source

Built Distribution

editrcs-0.5.3-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: editrcs-0.5.3.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.3.tar.gz
Algorithm Hash digest
SHA256 971c20be2b4af3475a9a8067e8f6abfdc22f4dbbf95ddfb773750ddb44016502
MD5 8b084cf6634fc39875d30d189f16b271
BLAKE2b-256 8d49713a876db706703ab3aaaa63489a9bf538061972eedba6c4827e9e8e4858

See more details on using hashes here.

File details

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

File metadata

  • Download URL: editrcs-0.5.3-py3-none-any.whl
  • Upload date:
  • Size: 22.9 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2ffa72646ee7c28ae52a51346408501d15407137286f3eeea2ca5bb1bfda0b4a
MD5 f522179fb918fe58ec54d983ebc1cd46
BLAKE2b-256 4b0c9b2200c526328bde0dc55da73586b9122c62860e17d087a1c3bad5a7703b

See more details on using hashes here.

Supported by

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