This is an archive of the discontinued Mercurial Phabricator instance.

hiddenoverride: optionally log details
ClosedPublic

Authored by quark on Jul 20 2017, 5:55 PM.
Tags
None
Subscribers

Details

Reviewers
durham
stash
Group Reviewers
Restricted Project
Commits
rFBHGX77e840e8c8c7: hiddenoverride: optionally log details
Summary

This allows us to log what nodes are pinned by what commands. So we can
manually investigate what was happening when we get user complaints.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

quark created this revision.Jul 20 2017, 5:55 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptJul 20 2017, 5:55 PM
stash requested changes to this revision.Jul 21 2017, 4:11 AM
stash added a subscriber: stash.
stash added inline comments.
hgext3rd/fbamend/hiddenoverride.py
101–102

loadpinnednodes returns generator. So in this case it outputs empty list. There are two ways to fix it - use list(loadpinnednodes(repo)) here or return list instead of generator in loadpinnednodes. I vote for latter

tests/test-fbamend-hiddenoverride.t
63–93

before is always []. It's incorrect, isn't it?

And I think I know what's the problem, see above

This revision now requires changes to proceed.Jul 21 2017, 4:11 AM
quark edited edge metadata.Jul 21 2017, 10:52 AM
quark updated this revision to Diff 366.
quark added inline comments.Jul 21 2017, 10:52 AM
hgext3rd/fbamend/hiddenoverride.py
101–102

Good catch!

quark added a comment.Jul 21 2017, 1:48 PM

I'm pushing this in the hope that it helps identify related issues if we got related complaints again. We have rolled back too many times this week and I'd like to get some clues at least next time.

This revision was automatically updated to reflect the committed changes.