This is an archive of the discontinued Mercurial Phabricator instance.

repoview: add two new filternames to be used for accessing hidden commits
AbandonedPublic

Authored by pulkit on Nov 2 2017, 2:09 PM.

Details

Reviewers
None
Group Reviewers
hg-reviewers
Summary

This patch adds two new filternames 'visible-allowhidden' and
'visible-warnhidden' which will be used to access hidden commits.

'visible-allowhidden' will allow access of hidden commits without any warning.
This will be for read only commands.
'visible-warnhidden' will allow acces of hidden commits but will warn for that.
This will be for recoverable write commands.

For unrecoverable write commands, we don't need to have anything new as that's
the current behaviour.

The idea to add new filternames is taken from directaccess extension from
fb-hgext.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped