Page MenuHomePhabricator

Make copyright script update to current year instead of last commit year
AbandonedPublic

Authored by nakihito on Feb 7 2020, 01:49.

Details

Reviewers
deadalnix
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Restricted Project
Summary

Currently, copyright_headers.py uses the files' most recent git commit
year when updating or inserting a the copyright header. This is rather
silly as if you run the script again immediately after committing
copyright updates then then the script will update the copyright again
to the current year (where valid).

This change simply changes the script to update copyright to the current
year.

Test Plan

Note: Doesn't have to be src/seeder/test/, but makes testing easier as there is only one relevant file.

contrib/devtools/copyright_header.py src/seeder/test/

Should update from: // Copyright (c) 2019 The Bitcoin developers
To: // Copyright (c) 2019-2020 The Bitcoin developers
Repeat and it should make no change outputting Copyright up-to-date.

Repeat with directory with a python file.

Diff Detail

Repository
rABC Bitcoin ABC
Branch
FixCopyrightScript-2
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 9313
Build 16562: Default Diff Build & Tests
Build 16561: arc lint + arc unit