This is an archive of the discontinued Mercurial Phabricator instance.

repoview: remove incorrect documentation of the function
ClosedPublic

Authored by pulkit on Oct 11 2017, 5:44 PM.

Details

Summary

In repoview.py, computeunserved() and computemutable() functions had the same
documentation. The documentation of computemutable() is wrong. I was unable to
write documentation for the function but it's better to not having the
documentation than having it wrong.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

pulkit created this revision.Oct 11 2017, 5:44 PM
dlax added a subscriber: dlax.Oct 12 2017, 3:20 AM
dlax added inline comments.
mercurial/repoview.py
104

Maybe update the docstring instead of removing?

ryanmce requested changes to this revision.Oct 12 2017, 7:27 AM
ryanmce added a subscriber: ryanmce.

I agree that removing is better than leaving bad docs, so I'm +1 on this, but as @dlax suggests, improving it would be even better.

If you don't have ideas on how to improve it, feel free to re-request review and I can queue this.

This revision now requires changes to proceed.Oct 12 2017, 7:27 AM
pulkit requested review of this revision.Oct 12 2017, 1:24 PM

I agree that removing is better than leaving bad docs, so I'm +1 on this, but as @dlax suggests, improving it would be even better.
If you don't have ideas on how to improve it, feel free to re-request review and I can queue this.

I also agree with @dlax but unfortunately I don't have much ideas with this. Sorry. (re-requesting review)

mercurial/repoview.py
104

I am not much confident about whether I understand this part of code correctly or not. So it was hard for me updating the doc.

This revision was automatically updated to reflect the committed changes.