Page MenuHomePhabricator

scripted-diff: Use ArgsManager::DEBUG_ONLY flag
ClosedPublic

Authored by deadalnix on Apr 18 2020, 07:22.

Details

Summary

-BEGIN VERIFY SCRIPT-
sed -i 's/unsigned int flags, const bool debug_only,/unsigned int flags,/' src/util/system.h src/util/system.cpp
sed -i 's/ArgsManager::NONE, debug_only/flags, false/' src/util/system.cpp
sed -i 's/arg.second.m_debug_only/(arg.second.m_flags \& ArgsManager::DEBUG_ONLY)/' src/util/system.cpp
sed -i 's/ArgsManager::ALLOW_ANY, true, OptionsCategory::/ArgsManager::ALLOW_ANY | ArgsManager::DEBUG_ONLY, OptionsCategory::/' $(git grep --files-with-matches 'AddArg(' src)
sed -i 's/ArgsManager::ALLOW_ANY, false, OptionsCategory::/ArgsManager::ALLOW_ANY, OptionsCategory::/' $(git grep --files-with-matches 'AddArg(' src)
-END VERIFY SCRIPT-

This is a partial backport of Core PR16097 : https://github.com/bitcoin/bitcoin/pull/16097/commits/fb4b9f9e3b433d8848832e2c2686cf7b1f212a5e

Depends on D5767

Test Plan
ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Branch
pr16097-5
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 10287
Build 18395: Default Diff Build & Tests
Build 18394: arc lint + arc unit

Event Timeline

[Bot Message]
One or more PR numbers were detected in the summary.
Links to those PRs have been inserted into the summary for reference.

This revision is now accepted and ready to land.Apr 20 2020, 08:13