diff 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
line wrap: on
line diff
--- a/docs/conf.py	Fri Sep 01 08:32:17 2017 +0200
+++ b/docs/conf.py	Thu Sep 21 17:13:09 2017 +0200
@@ -140,6 +140,8 @@
 
     def run(self):
         u = ui.ui()
+        if not hasattr(u, 'disablepager'):
+            return []
         u.disablepager()
         u.setconfig(
             'extensions', 'evolve',