-
Notifications
You must be signed in to change notification settings - Fork 10
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
ign -> gz Header Migration : ign-utils #53
Conversation
7e0321c
to
2c41344
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall, I'm just concerned about maintaining the file's histories
@@ -1,5 +1,5 @@ | |||
/* | |||
* Copyright (C) 2021 Open Source Robotics Foundation | |||
* Copyright (C) 2022 Open Source Robotics Foundation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't change the copyright years, they represent the year the original file was first created
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be hard to automate it, I'll add a user warning to remind us to double check and unstage any unecessary copyright changes if there are any!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I went down a deep rabbit hole. But now every copyright year that's changed will be programmatically unpatched!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatically updated file (Error.hpp): https://github.com/ignitionrobotics/ign-utils/pull/53/files#diff-828663b8f5f0dcf98863f54c2325e72112e30bf629695007b6ae6accd9927550
* | ||
*/ | ||
|
||
#ifndef GZ_UTILS_CLI_IGNITION_FORMATTER_HPP_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this file moved with git mv
? Its blame only shows the commits in this PR:
It's similar for some of the other moved files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I think it's because to get the git diff to work in the script, I had to reset. I think I'll bypass that and force a commit, hopefully that gets the histories transferred!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
gazebo-tooling/release-tools@0a46de1
The issue was the script was ignoring staged changes when checking git diff
. I edited the commit function to be more flexible (gazebo-tooling/release-tools@daad715) to have it git diff --staged
instead. (I was previously resetting/unstaging the changes which caused the blame to go awry.)
The blames should show up now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The blame looks good to me now!
Another thing we should check is whether squash-merging this PR would preserve that, or if we need to rebase-merge.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the header guard still has IGNITION
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch! Fixed!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the header guard still needs to be fixed in this file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, looks like an edit to the regex I had on the script caused a reversion...
@@ -225,9 +225,9 @@ GTEST_API_ std::string GetBoolAssertionFailureMessage( | |||
// The most-significant bit being the leftmost, an IEEE | |||
// floating-point looks like | |||
// | |||
// sign_bit exponent_bits fraction_bits | |||
// sgz_bit exponent_bits fraction_bits |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug squashed! gazebo-tooling/release-tools@0ab424b
44e06f0
to
545ff65
Compare
545ff65
to
0de1a3d
Compare
Done! The script now amends the previous commit (we need a previous commit to check for copyright changes so we can unpatch them.) |
Signed-off-by: methylDragon <[email protected]>
Signed-off-by: methylDragon <[email protected]>
Signed-off-by: methylDragon <[email protected]>
Signed-off-by: methylDragon <[email protected]>
0de1a3d
to
ea5baa1
Compare
Signed-off-by: methylDragon <[email protected]>
@@ -15,4 +15,4 @@ | |||
* | |||
*/ | |||
|
|||
#include <CLI/App.hpp> | |||
#include <external-cli/gz/utils/cli/App.hpp> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the external-cli/
should be removed from the #include
s in all these files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* | ||
*/ | ||
|
||
#include <vendored-cli/gz/utils/cli/CLI.hpp> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vendored-cli/
should be removed from all the #include
s in these files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,18 @@ | |||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this redirect header points to nothing and it should be removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is a redirect header missing for ignition/utils/detail/Export.hh
|
Test run of gazebo-tooling/release-tools#712