script to retroactively add commitids to past openbsd commits
at master 30 lines 860 B view raw view rendered
1###OpenBSD commitid generator 2 3A work in progress to assign CVS provenance-style `commitid` identifiers to 4all revisions of all files in OpenBSD's CVS trees. 5 6####Usage 7 8Paths used here are hard-coded in `openbsd-commitid.rb`. 9 101. Download pristine sources to `/var/cvs`: 11 12 `$ cvsync` 13 142. Duplicate just-downloaded tree to `/var/cvs-commitid`, since these files 15will get modified: 16 17 `$ rsync -a --delete /var/cvs/. /var/cvs-commitid/.` 18 193. Run this script: 20 21 `$ ruby openbsd-commitid.rb` 22 23**NOTE**: This script relies on recently added changes to OpenBSD's `rlog` and 24`cvs` tools: 25 26- `cvs admin -C` to set a revision's `commitid` 27- `rlog -E` and `rlog -S` to control the revision separators in `rlog` output, 28 since the default line of dashes appears in old commit messages 29 30For details of how this script works, read `openbsd-commitid.rb`.