summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGES.txt4
-rw-r--r--coverage/annotate.py3
2 files changed, 4 insertions, 3 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 1b7295be..491c853b 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -14,9 +14,13 @@ Change history for Coverage.py
- The XML report will now create the output directory if need be, fixing
`issue 285`_. Thanks Chris Rose.
+- The annotate command will now annotate all files, not just ones relative to
+ the current directory, fixing `issue 57`_.
+
- The coverage module no longer causes deprecation warnings on Python 3.4 by
importing the imp module, fixing `issue 305`_.
+.. _issue 57: https://bitbucket.org/ned/coveragepy/issue/57/annotate-command-fails-to-annotate-many
.. _issue 94: https://bitbucket.org/ned/coveragepy/issue/94/coverage-xml-doesnt-produce-sources
.. _issue 285: https://bitbucket.org/ned/coveragepy/issue/285/xml-report-fails-if-output-file-directory
.. _issue 305: https://bitbucket.org/ned/coveragepy/issue/305/pendingdeprecationwarning-the-imp-module
diff --git a/coverage/annotate.py b/coverage/annotate.py
index 19777eaf..8074df91 100644
--- a/coverage/annotate.py
+++ b/coverage/annotate.py
@@ -47,9 +47,6 @@ class AnnotateReporter(Reporter):
`cu` is the CodeUnit for the file to annotate.
"""
- if not cu.relative:
- return
-
filename = cu.filename
source = cu.source_file()
if self.directory: