comparison docs/conf.py @ 2963:b84dda686fb1

doc: disable generating command documentation when mercurial is not up-to-date
author Philippe Pepiot <phil@philpep.org>
date Thu, 21 Sep 2017 17:13:09 +0200
parents 3f466d348047
children 9aec8fec2bf8
comparison
equal deleted inserted replaced
2962:3f466d348047 2963:b84dda686fb1
138 class hghelpdirective(Directive): 138 class hghelpdirective(Directive):
139 has_content = True 139 has_content = True
140 140
141 def run(self): 141 def run(self):
142 u = ui.ui() 142 u = ui.ui()
143 if not hasattr(u, 'disablepager'):
144 return []
143 u.disablepager() 145 u.disablepager()
144 u.setconfig( 146 u.setconfig(
145 'extensions', 'evolve', 147 'extensions', 'evolve',
146 os.path.join( 148 os.path.join(
147 os.path.abspath(os.path.dirname(__file__)), 149 os.path.abspath(os.path.dirname(__file__)),