Mercurial > hg
changeset 46511:02d91167cfc3
tests: add a comment in a test that will hopefully save someone some time
I spent at least an hour, probably closer to 1.5, trying to figure out what this
was complaining about. Hopefully anyone else in my position will see this note
and not waste the time.
Differential Revision: https://phab.mercurial-scm.org/D9953
author | Kyle Lippincott <spectral@google.com> |
---|---|
date | Thu, 04 Feb 2021 11:32:08 -0800 |
parents | fa7ae7aa0efd |
children | 866eb4d6bd9f |
files | tests/test-check-module-imports.t |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-check-module-imports.t Wed Jan 27 03:07:14 2021 +0100 +++ b/tests/test-check-module-imports.t Thu Feb 04 11:32:08 2021 -0800 @@ -14,6 +14,10 @@ Known-bad files are excluded by -X as some of them would produce unstable outputs, which should be fixed later. +NOTE: the `hg locate` command here only works on files that are known to +Mercurial. If you add an import of a new file and haven't yet `hg add`ed it, you +will likely receive warnings about a direct import. + $ testrepohg locate 'set:**.py or grep(r"^#!.*?python")' \ > 'tests/**.t' \ > -X hgweb.cgi \