Prefetch during commit means that commit may fail offline.
Unfortunately we don't know why it happens. Let's log these events to
investigate.
Details
- Reviewers
quark - Group Reviewers
Restricted Project
Run unit-tests
Diff Detail
- Repository
- rFBHGX Facebook Mercurial Extensions
- Branch
- default
- Lint
Lint OK - Unit
Unit Tests OK
Event Timeline
I guess prefetch could happen when linkrev is incorrect.
remotefilelog/__init__.py | ||
---|---|---|
136 | Is there a reason to wrap runcommand? I think you can just change fileservice directly? |
remotefilelog/__init__.py | ||
---|---|---|
138 | I see. You're checking if the command is commit. That has to be done via runcommand unfortunately. |
remotefilelog/__init__.py | ||
---|---|---|
138 | Instead of putting fileserver logging code up here, can we put the command name somewhere that the fileserver can read? Like temporary attribute on the ui object? Then the fileserver can have it's own logic check that. Other parts of the code might want to know the current command as well, so it would help them too. |
It's not that necessary now, and requires more work to get it done. I'm going to abandon the diff.
Is there a reason to wrap runcommand? I think you can just change fileservice directly?