This is an archive of the discontinued Mercurial Phabricator instance.

directaccess: add support for accessing hidden commits if command is read only
AbandonedPublic

Authored by pulkit on Sep 19 2017, 9:36 PM.

Details

Reviewers
durham
Group Reviewers
hg-reviewers
Summary

This patch adds support for accessing hidden commits by read only commands. It
introduces a new config experimental.directaccess which can be set to true to
access the hidden commits.

Currently this supports revision numbers also which may don't want to support.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

pulkit created this revision.Sep 19 2017, 9:36 PM
durham requested changes to this revision.Sep 26 2017, 8:16 AM
durham added a subscriber: durham.

Probably needs a simple test, unless that comes later in the series.

mercurial/dispatch.py
898

This seems overly broad. 'hg log' is a readonly command, and if I do 'hg log -r HIDDEN_HASH' I want to see the hidden commit, but if I do 'hg log' I don't want to see hidden commits. I think this change would cause hg log to show all hidden commits right?

This revision now requires changes to proceed.Sep 26 2017, 8:16 AM
pulkit abandoned this revision.Oct 10 2017, 5:31 PM