Page MenuHomePhabricator

Move version comparison utility functions to their own file
ClosedPublic

Authored by jasonbcox on Sep 15 2020, 17:58.

Details

Summary

In order to migrate archive-release-notes and the AUR automation
according to D7442, we need a better way for these utility functions to
continue to be shared.

Test Plan

With this patch applied, create a version bump commit to trigger release notes archiving:

sed -i 's/VERSION 0.22.2/VERSION 0.22.3/g' CMakeLists.txt
git add -u
git commit -m "version bump"

Test:

COMMIT_TYPE=archive-release-notes ./automated-commits.sh -p HEAD
git show     # verify release notes are archived as expected

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

deadalnix added a subscriber: deadalnix.

Accepting, but this is looking more and more like you want to invest in some python here.

This revision is now accepted and ready to land.Sep 15 2020, 22:46