diff options
author | gbrandl <gbrandl@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2007-07-15 21:16:25 +0000 |
---|---|---|
committer | gbrandl <gbrandl@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2007-07-15 21:16:25 +0000 |
commit | b678824a34c47d88271902e1647a6be64cbef3b1 (patch) | |
tree | 85b863803c593ee6aaeac0ccb0ce292aa8fd88c4 /sandbox/py-rest-doc/sphinx/environment.py | |
parent | 94181f1a2d65ce37eae96ee05869c04c5b92fbd4 (diff) | |
download | docutils-b678824a34c47d88271902e1647a6be64cbef3b1.tar.gz |
- Do an update build per default.
- Allow overriding conf.py values from the command line.
- Fix a builder bug.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk@5369 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
Diffstat (limited to 'sandbox/py-rest-doc/sphinx/environment.py')
-rw-r--r-- | sandbox/py-rest-doc/sphinx/environment.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sandbox/py-rest-doc/sphinx/environment.py b/sandbox/py-rest-doc/sphinx/environment.py index 16386e074..540f3ec44 100644 --- a/sandbox/py-rest-doc/sphinx/environment.py +++ b/sandbox/py-rest-doc/sphinx/environment.py @@ -284,9 +284,14 @@ class BuildEnvironment: def update(self, config): """ (Re-)read all files new or changed since last update. - Yields filenames as it processes them. + Yields a summary and then filenames as it processes them. """ removed, changed = self.get_outdated_files(config) + msg = '%s removed, %s changed' % (len(removed), len(changed)) + if self.config != config: + msg = '[config changed] ' + msg + yield msg + self.config = config # clear all files no longer present |