changeset 3059: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
files docs/conf.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -140,6 +140,8 @@
 
     def run(self):
         u = ui.ui()
+        if not hasattr(u, 'disablepager'):
+            return []
         u.disablepager()
         u.setconfig(
             'extensions', 'evolve',