-
Notifications
You must be signed in to change notification settings - Fork 26.8k
git-p4: do not fail in verbose mode for missing fileSize
#373
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
git-p4: do not fail in verbose mode for missing fileSize
#373
Conversation
@CaballerosTeam sent this commit (8d1b103...da72693) as a patch to the mailing list with submitGit - here on public-inbox, MARC |
fileSize
This patch is stuck waiting for feedback from the patch author: https://public-inbox.org/git/xmqq1sqpp1vv.fsf@gitster.mtv.corp.google.com/ |
@CaballerosTeam care to respond? |
@CaballerosTeam please review the answer provided in https://public-inbox.org/git/xmqq1sqpp1vv.fsf@gitster.mtv.corp.google.com/, and answer as indicated on the bottom of that page (or if you prefer, say, GMail's UI, you can try to follow this advice). |
@CaballerosTeam gentle ping? |
@CaballerosTeam another gentle ping? If you are no longer interested in this patch, please close this PR. |
@CaballerosTeam please do review the answer provided in https://public-inbox.org/git/xmqq1sqpp1vv.fsf@gitster.mtv.corp.google.com/, and answer. |
@CaballerosTeam ping? |
@CaballerosTeam quoting that mail for your convenience:
So maybe now you can address that feedback, by replying to that mail either by following the instructions on the bottom of the linked page or by following the advice given in https://github.com/gitgitgadget/gitgitgadget/wiki/ReplyToThis? |
Hey everyone, actually I can't recall exactly why that patch is got stuck in middle of 2017. It seems to me that there was a discussion with one of the reviewers, which remained without final solution. So could someone give me a hint what your expectations are? Provide a more sensible commit message to a reader? or dig deeper in the root case and figure out why |
I can tell you: because you had not responded to Junio's mail. In other words, there was no discussion, as a discussion requires not only one side to speak, but two. That's why I keep pinging you, and even served the fries on a silver platter, so to say, by pasting the mail into a comment in this PR so that you would not need to follow the link to the mail that I gave to you earlier.
Yes, of course. There was even a copy-pasteable suggestion how to improve the first line of the commit message:
Also, Junio pointed out to you that you need to add your sign-off, mentioning the documentation about contributing patches: https://git-scm.com/docs/SubmittingPatches
Well, the rather clear indication that an explanation for this change is missing from the commit message ("The blank space above is to explain why this change is needed and a good idea") should be enough to tell you that yes, you should know why your patch solves the problem, and explain that in the commit message so that others will see why it is a patch that we would want to take. One thing that puzzles me to no end is why you left this statement unanswered:
You could answer this either by writing a convincing commit message, in the indicated way (Junio did not spend that much time writing the very detailed review expecting that you would totally ignore it). Or, if the suspicion that the patch might be "sweeping the problem under the rug" is actually correct, you could change the patch to address the underlying problem instead, then submit a new iteration of the patch (just force-push and use submitGit again). In both cases, however, it will require you to "dig deeper" to actually understand what is going on, and to know whether your patch is fixing the problem or just papering over a not yet understood deeper problem. If all of this seems like too much work, just close the Pull Request and forget about it. |
One very obvious way to answer this concern of Junio's could have been to point out that both 4d25dc4 and d2176a5 added conditional code contingent on And a very obvious way to write a commit message would use these two commits as exhibits A and B when "building the case" for this patch. Something like this: Just like 4d25dc4 (git-p4: check free space during streaming, 2015-09-26) and d2176a5 (git-p4: add file streaming progress in verbose mode, 2015-09-26), And then you would also Cc: the author of these two patches, @larsxschneider, so that they can possibly contribute the underlying reasons if they remember. |
Oh, and the commit message should of course also mention that with this patch, there is code path left that accesses the |
Thank you very much for such detailed reply. I found an email chain with Lars Schneider (@larsxschneider) there we discussed that patch and borrowed from it couple of ideas regarding to circumstances. Please, let me know if the following message makes sense:
with best regards, |
As I already pointed out, I would have preferred something like this:
But you do what you do, and I'm done here. |
I'm going to close this pull request since the issue was fixed in 0742b7c |
Avoid using uninitialized variables in `format_tracking_info()`
git-p4 might fall in verbose mode with KeyError "fileSize" exception. Suggested don't print file size if it not known.
Signed-off-by: Sergey Yurzin jurzin.s@gmail.com