If one works within a directory that is named or contains a file that matches the WT ticket ID, s_mentions will pick it up. Furthermore, it seems that it also checks the auto-generated make files, which contain path location.
Repro:
~/work/wt-8306-resolve-upds/src$ grep -inr --exclude-dir=.git "8306" ../. .././build_posix/config.log:1586:ACLOCAL='${SHELL} work/wt-8306-resolve-upds/build_posix/gnu-support/missing aclocal-1.15' .././build_posix/config.log:1601:AUTOCONF='${SHELL} work/wt-8306-resolve-upds/build_posix/gnu-support/missing autoconf' .././build_posix/config.log:1602:AUTOHEADER='${SHELL} work/wt-8306-resolve-upds/build_posix/gnu-support/missing autoheader' .././build_posix/config.log:1603:AUTOMAKE='${SHELL} work/wt-8306-resolve-upds/build_posix/gnu-support/missing automake-1.15' .././build_posix/config.log:1665:MAKEINFO='${SHELL} work/wt-8306-resolve-upds/build_posix/gnu-support/missing makeinfo' .././build_posix/config.log:1765:install_sh='${SHELL} work/wt-8306-resolve-upds/build_posix/gnu-support/install-sh' .././build_posix/config.status:440:ac_pwd='work/wt-8306-resolve-upds/build_posix'
Suggestions:
- Only check for files' content
- Use the file filelist or only grep into the src folder (we might occurrences though).