New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backport: Merge #23517,23546,23703 (scripted diff) #5685
base: develop
Are you sure you want to change the base?
Conversation
f21ca35
to
1fb0192
Compare
This pull request has conflicts, please rebase. |
I feel like it is not good idea for rushing with backports such as "merge bitcoin#22976: Rename overloaded int GetArg to GetIntArg" By rough estimation, there are more than 500 older backports waiting their turn to be done and any backport from that queue that uses an old version of Of course, each particular fix in each particular case is trivial, the compiler even will show it as a compilation error, so, it won't cause any real issue. But disadvantage of doing bitcoin#22976 at this moment is an overall slowdown of backporting process. Current backport status of full coverage (98-99%) at this point in v21:
If get list all of commit between them 22976 and 18669:
and grep 'GetArg' after that:
There's 477 particular usage of It means that all trivial changes such as this https://github.com/bitcoin/bitcoin/pull/21056/files
will require one extra manual conflict resolving/compilation fix. @vijaydasmp may I ask you to don't backports any big refactorings such as this one (especially scripted-diffs that affect hundreds of lines) from v22 or newer bitcoin version while the gap is that big yet? |
Thanks I will drop this commit for now, will make use of above command to efficiently backport |
-BEGIN VERIFY SCRIPT- # Move module git mv src/miner.cpp src/node/ git mv src/miner.h src/node/ # Replacements sed -i 's:miner\.h:node/miner.h:g' $(git grep -l miner) sed -i 's:miner\.cpp:node/miner.cpp:g' $(git grep -l miner) sed -i 's:MINER_H:NODE_MINER_H:g' $(git grep -l MINER_H) -END VERIFY SCRIPT-
…d arguments (tests only) -BEGIN VERIFY SCRIPT- perl -0777 -pi -e 's:((\(|\{|,)(\n| )*)\/\* ?([^=* ]+) ?\*\/ ?:\1/*\4=*/:g' $( git ls-files ./src/test ./src/wallet/test ) -END VERIFY SCRIPT-
-BEGIN VERIFY SCRIPT- sed -i -e 's|, /\* optional \*/ true,|, /*optional=*/true,|g' $( git grep -l ', /\* optional \*/ true,' ) -END VERIFY SCRIPT-
…ntion of boost -BEGIN VERIFY SCRIPT- FILES=$(git ls-files src/qt) sed -i 's/boostPathToQString/PathToQString/g' -- $FILES sed -i 's/qstringToBoostPath/QStringToPath/g' -- $FILES -END VERIFY SCRIPT-
will be keeping this scripted diff in drafts only and will open it for review once its appropriate for it to merge |
This pull request has conflicts, please rebase. |
-BEGIN VERIFY SCRIPT-
git grep -l GetArg | xargs sed -i 's/GetArg(([^)]*( [0-9]+|-1|port|BaseParams().RPCPort()|Params().GetDefaultPort()|_TIMEOUT|Height|_WORKQUEUE|_THREADS|_CONNECTIONS|LIMIT|SigOp|Bytes|_VERSION|_AGE|_CHECKS|Checks() ? 1 :
0|_BANTIME|Cache|BLOCKS|LEVEL|Weight|Version|BUFFER|TARGET|WEIGHT|TXN|TRANSACTIONS|ADJUSTMENT|i64|Size|nDefault|_EXPIRY|HEIGHT|SIZE|SNDHWM|_TIME_MS)))/GetIntArg(\1)/g'
-END VERIFY SCRIPT-