##// END OF EJS Templates
configitems: register the 'web.view' config
Boris Feld -
r34585:bf2389b1 default
parent child Browse files
Show More
@@ -748,6 +748,9 b" coreconfigitem('web', 'style',"
748 coreconfigitem('web', 'templates',
748 coreconfigitem('web', 'templates',
749 default=None,
749 default=None,
750 )
750 )
751 coreconfigitem('web', 'view',
752 default='served',
753 )
751 coreconfigitem('worker', 'backgroundclose',
754 coreconfigitem('worker', 'backgroundclose',
752 default=dynamicdefault,
755 default=dynamicdefault,
753 )
756 )
@@ -482,8 +482,8 b' def getwebview(repo):'
482
482
483 The option has been around undocumented since Mercurial 2.5, but no
483 The option has been around undocumented since Mercurial 2.5, but no
484 user ever asked about it. So we better keep it undocumented for now."""
484 user ever asked about it. So we better keep it undocumented for now."""
485 viewconfig = repo.ui.config('web', 'view', 'served',
485 # experimental config: web.view
486 untrusted=True)
486 viewconfig = repo.ui.config('web', 'view', untrusted=True)
487 if viewconfig == 'all':
487 if viewconfig == 'all':
488 return repo.unfiltered()
488 return repo.unfiltered()
489 elif viewconfig in repoview.filtertable:
489 elif viewconfig in repoview.filtertable:
General Comments 0
You need to be logged in to leave comments. Login now