##// END OF EJS Templates
hgweb: add some in-code documentation for 'web.view'...
Pierre-Yves David -
r25565:be4dc000 default
parent child Browse files
Show More
@@ -100,6 +100,16 b' class hgweb(object):'
100 untrusted=untrusted)
100 untrusted=untrusted)
101
101
102 def _getview(self, repo):
102 def _getview(self, repo):
103 """The 'web.view' config controls changeset filter to hgweb. Possible
104 values are ``served``, ``visible`` and ``all``. Default is ``served``.
105 The ``served`` filter only shows changesets that can be pulled from the
106 hgweb instance. The``visible`` filter includes secret changesets but
107 still excludes "hidden" one.
108
109 See the repoview module for details.
110
111 The option has been around undocumented since Mercurial 2.5, but no
112 user ever asked about it. So we better keep it undocumented for now."""
103 viewconfig = repo.ui.config('web', 'view', 'served',
113 viewconfig = repo.ui.config('web', 'view', 'served',
104 untrusted=True)
114 untrusted=True)
105 if viewconfig == 'all':
115 if viewconfig == 'all':
General Comments 0
You need to be logged in to leave comments. Login now