Cache problem after igoring a directory.

Rüdiger Ranft avatarRüdiger Ranft created an issue

After I added my .hg directory to the exclude_patterns variable, the immediate following build failed, but the problem itself vanished afterwards (all following builds are working fine).

$ make html
mkdir -p _static
sphinx-build -b html -d _build/doctrees   . _build/html
Running Sphinx v1.1.2
loading pickled environment... done
building [html]: targets for 8 source files that are out of date
updating environment: [config changed] 7 added, 0 changed, 1 removed
reading sources... [100%] workflow
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [ 12%] .hg/last-message
Exception occurred:
  File "/home/ESA-GRIMMA/ranft/.virtualenvs/docutils/lib/python2.5/site-packages/sphinx/", line 1167, in get_toc_for
    toc = self.tocs[docname].deepcopy()
KeyError: '.hg/last-message'
The full traceback has been saved in /tmp/sphinx-err-RTJpO6.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
Either send bugs to the mailing list at <>,
or report them in the tracker at <>. Thanks!
make: *** [html] Fehler 1

$ sphinx-build --version
Sphinx v1.1.2
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.