pulkit created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers.
REVISION 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. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D737 AFFECTED FILES mercurial/dispatch.py CHANGE DETAILS diff --git a/mercurial/dispatch.py b/mercurial/dispatch.py --- a/mercurial/dispatch.py +++ b/mercurial/dispatch.py @@ -42,6 +42,7 @@ ) unrecoverablewrite = registrar.command.unrecoverablewrite +readonly = registrar.command.readonly class request(object): def __init__(self, args, ui=None, repo=None, fin=None, fout=None, @@ -890,6 +891,11 @@ ui = repo.ui if options['hidden']: repo = repo.unfiltered() + # Accesing hidden commits based on func.cmdtype + if lui.configbool('experimental', 'directaccess', False): + cmdtype = func.cmdtype + if cmdtype == readonly: + repo = repo.unfiltered() args.insert(0, repo) elif rpath: ui.warn(_("warning: --repository ignored\n")) To: pulkit, #hg-reviewers Cc: mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel