doc: disable generating command documentation when mercurial is not up-to-date
authorPhilippe Pepiot <phil@philpep.org>
Thu, 21 Sep 2017 17:13:09 +0200
changeset 2963 b84dda686fb1
parent 2962 3f466d348047
child 2964 9aec8fec2bf8
doc: disable generating command documentation when mercurial is not up-to-date
docs/conf.py
--- 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',