Skip to content

Conversation

@DrahtBot
Copy link
Contributor

No description provided.

-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-

Commits of previous years:
* 2020: fa0074e
* 2019: aaaaad6
@DrahtBot
Copy link
Contributor Author

Copy link
Member

@hebasto hebasto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK faac4a9

Verified by running copyright_header.py update ./ locally and getting zero diff.

@hebasto
Copy link
Member

hebasto commented Dec 30, 2021

Sorry, revoking my ACK.

It seems we must drop the trailing slash in ./contrib/devtools/copyright_header.py update ./

For example, see changes in src/ipc/protocol.h: copyright_header.py produces wrong changes 2021 --> 2021-2017

-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
@DrahtBot
Copy link
Contributor Author

Thanks, fixed

@hebasto
Copy link
Member

hebasto commented Dec 30, 2021

Sorry @DrahtBot again.

May I suggest the following changes to this PR:

  • apply a fix to avoid changes like 2021 --> 2021-2017:
--- a/contrib/devtools/copyright_header.py
+++ b/contrib/devtools/copyright_header.py
@@ -371,7 +371,7 @@ def create_updated_copyright_line(line, last_git_change_year):
     space_split = after_copyright.split(' ')
     year_range = space_split[0]
     start_year, end_year = parse_year_range(year_range)
-    if end_year == last_git_change_year:
+    if end_year >= last_git_change_year:
         return line
     return (before_copyright + copyright_splitter +
             year_range_to_str(start_year, last_git_change_year) + ' ' +
  • add copyright headers to the following files:
build_msvc/libsecp256k1_config.h
contrib/devtools/clang-format-diff.py
contrib/devtools/symbol-check.py
contrib/guix/libexec/build.sh
contrib/guix/libexec/codesign.sh
contrib/tracing/log_raw_p2p_msgs.py
contrib/tracing/log_utxocache_flush.py
contrib/tracing/p2p_monitor.py
src/cuckoocache.h
src/test/torcontrol_tests.cpp
test/functional/test_framework/authproxy.py
test/functional/test_framework/descriptors.py
test/functional/test_framework/key.py
test/functional/test_framework/muhash.py
test/functional/test_framework/ripemd160.py
test/functional/test_framework/segwit_addr.py
test/lint/lint-files.sh
test/util/test_runner.py
  • and apply ./contrib/devtools/copyright_header.py update . once only

?

@DrahtBot
Copy link
Contributor Author

Also #21139.

Closing as "up for grabs", as I won't be having time to work on this right now.

@DrahtBot DrahtBot closed this Dec 30, 2021
@maflcko maflcko deleted the 2112-drahty branch December 30, 2021 17:29
@hebasto
Copy link
Member

hebasto commented Dec 30, 2021

Also #21139.

Closing as "up for grabs", as I won't be having time to work on this right now.

Ok, done in #23912.

maflcko pushed a commit that referenced this pull request Dec 31, 2021
1362d61 scripted-diff: Insert missed copyright headers (Hennadii Stepanov)
f47dda2 scripted-diff: Bump copyright headers (Hennadii Stepanov)
c29105e script: Fix copyright_header.py (Hennadii Stepanov)

Pull request description:

  This PR is an alternative to #23903.

  It bumps the existing copyright headers as we did every year, and adds the missed copyright headers.

  A small fix has been applied to the `copyright_header.py` in order to prevent such weird bumping as `2021` --> `2021-2017`.

ACKs for top commit:
  MarcoFalke:
    ACK 1362d61

Tree-SHA512: 204d970fe8c51546b26b8f03fe4297db8a9bef5101df851540b7b9eddbd3a09677ee81fdd882c60937d732407f42c9883165bd978272200cff8f90190f075905
@bitcoin bitcoin locked and limited conversation to collaborators Dec 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants