Mercurial > public > mercurial-scm > hg-stable
diff mercurial/configitems.py @ 35500:8bb90cc4668e
scmutil: add utility fn to return repo object with user passed revs unhidden
There has been a need for accessing hidden changesets by default without passing
--hidden. This is currently done using the directaccess extension but is bit
hacky.
This patch adds a utility function to return a repo object having user passed
revisions unhidden. This functionality will live behind a
config option and won't be the default behaviour. There is also a config option
added by this patch which tells whether we want to unhide only those revisions
whose hashes are passed or should we consider revisions numbers also.
Differential Revision: https://phab.mercurial-scm.org/D1733
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 15 Dec 2017 04:31:29 +0530 |
parents | 471918fa7f46 |
children | 0c4b23ccf1a5 |
line wrap: on
line diff
--- a/mercurial/configitems.py Mon Dec 18 17:50:02 2017 +0530 +++ b/mercurial/configitems.py Fri Dec 15 04:31:29 2017 +0530 @@ -452,6 +452,12 @@ coreconfigitem('experimental', 'crecordtest', default=None, ) +coreconfigitem('experimental', 'directaccess', + default=False, +) +coreconfigitem('experimental', 'directaccess.revnums', + default=False, +) coreconfigitem('experimental', 'editortmpinhg', default=False, )