1 # .hgignore - List of filenames hg should ignore
3 # Filenames that should be ignored wherever they appear
15 compile_commands\.json
17 # Generated by hg (e.g. revert, failed patch, ...)
21 # Ignore Python .egg-info directories for first-party modules (but,
22 # still add vendored packages' .egg-info directories)
23 ^(?=.*\.egg-info/)(?!^third_party/python/)(?!^testing/web-platform/tests/tools/third_party/)
29 # Emacs directory variable files.
31 # Emacs project sentinel files.
34 # User files that may appear at the root
48 # Empty marker file that's generated when we check out NSS
49 ^security/manager/\.nss\.checkout$
54 # gecko.log is generated by various test harnesses
57 # Ignore newtab component build assets
58 ^browser/components/newtab/logs/
60 # Ignore about:welcome build assets
61 ^browser/components/aboutwelcome/logs/
63 # Ignore ASRouter component build assets
64 ^browser/components/asrouter/logs/
66 # Ignore ASRouter generated test files
67 ^browser/components/newtab/content-src/asrouter/schemas/corpus/CFRMessageProvider.messages.json
68 ^browser/components/newtab/content-src/asrouter/schemas/corpus/OnboardingMessageProvider.messages.json
69 ^browser/components/newtab/content-src/asrouter/schemas/corpus/PanelTestProvider.messages.json
70 ^browser/components/newtab/content-src/asrouter/schemas/corpus/PanelTestProvider_toast_notification.messages.json
72 # Ignore Pocket component build and dev assets
73 browser/components/pocket/content/panels/css/main.compiled.css.map
75 # Ignore downloaded thirdparty build artifacts.
76 toolkit/components/translations/bergamot-translator/thirdparty
78 # Build directories for js shell
84 # SpiderMonkey configury
85 ^js/src/old-configure$
86 ^js/src/autom4te.cache$
87 # SpiderMonkey test result logs
88 ^js/src/tests/results-.*\.(html|txt)$
89 ^js/src/devtools/rootAnalysis/t/out
90 # SpiderMonkey wasm/generate-spectests artifacts
91 ^js/src/jit-test/etc/wasm/generate-spectests/specs/
92 ^js/src/jit-test/etc/wasm/generate-spectests/tests/
93 ^js/src/jit-test/etc/wasm/generate-spectests/target/
95 # Java HTML5 parser classes
96 ^parser/html/java/(html|java)parser/
101 # Ignore the files and directory that Eclipse IDE creates
106 # Ignore the files and directory that JetBrains IDEs create.
109 # Android Monitor in Android Studio creates a captures/ directory.
115 # Local Gradle configuration properties.
121 # Ignore chrome.manifest files from the devtools loader
122 ^devtools/client/chrome.manifest$
123 ^devtools/shared/chrome.manifest$
125 # Ignore node_modules directories in devtools
126 ^devtools/.*/node_modules/
128 # Ignore node_module directories and npm artifacts
129 ^remote/test/puppeteer/.*\.tsbuildinfo
130 ^remote/test/puppeteer/.*/lib/
131 ^remote/test/puppeteer/.*/node_modules/
132 ^remote/test/puppeteer/.*/\.wireit/
133 ^remote/test/puppeteer/\.devcontainer/
134 ^remote/test/puppeteer/\.github
135 ^remote/test/puppeteer/\.husky
136 ^remote/test/puppeteer/\.wireit/
137 ^remote/test/puppeteer/coverage/
138 ^remote/test/puppeteer/docker/
139 ^remote/test/puppeteer/docs/puppeteer-core\.api\.json
140 ^remote/test/puppeteer/docs/puppeteer\.api\.json
141 ^remote/test/puppeteer/experimental/
142 ^remote/test/puppeteer/lib/
143 ^remote/test/puppeteer/node_modules/
144 ^remote/test/puppeteer/package-lock\.json
145 ^remote/test/puppeteer/packages/ng-schematics/test/build
146 ^remote/test/puppeteer/packages/puppeteer/.*/README.md
147 ^remote/test/puppeteer/packages/puppeteer-core/src/generated
148 ^remote/test/puppeteer/packages/puppeteer-core/.*/README.md
149 ^remote/test/puppeteer/src/generated
150 ^remote/test/puppeteer/test/build
151 ^remote/test/puppeteer/test/installation/puppeteer.*\.tgz
152 ^remote/test/puppeteer/test/output-firefox
153 ^remote/test/puppeteer/test/output-chromium
154 ^remote/test/puppeteer/testserver/lib/
155 ^remote/test/puppeteer/tools/internal/
156 ^remote/test/puppeteer/tools/mocha-runner/bin/
157 ^remote/test/puppeteer/website
159 ^third_party/js/PKI.js/node_modules/
160 ^third_party/js/PKI.js/package-lock.json
162 # git checkout of libstagefright
163 ^media/libstagefright/android$
165 # Tag files generated by GNU Global
171 # Git clone directory for updating web-platform-tests
172 ^testing/web-platform/sync/
174 # Third party metadata for web-platform-tests
175 ^testing/web-platform/products/
177 # Android Gradle artifacts.
178 ^mobile/android/gradle/.gradle
180 # XCode project cruft
183 # Rust/Cargo output from running `cargo` directly
185 ^servo/ports/geckolib/target/
186 ^dom/base/rust/target/
187 ^servo/components/style/target/
188 ^dom/webgpu/tests/cts/vendor/target/
190 # Ignore mozharness execution files
191 ^testing/mozharness/.tox/
192 ^testing/mozharness/build/
193 ^testing/mozharness/logs/
194 ^testing/mozharness/.coverage
195 ^testing/mozharness/nosetests.xml
197 # Ignore tox generated dir
200 # Ignore ESLint and other tool's node_modules.
202 ^tools/browsertime/node_modules/
203 ^tools/lint/eslint/eslint-plugin-mozilla/node_modules/
204 ^browser/components/asrouter/node_modules/
205 ^browser/components/newtab/node_modules/
206 ^browser/components/aboutwelcome/node_modules/
207 ^tools/esmify/node_modules/
209 # Ignore talos virtualenv and tp5n files.
210 # The tp5n set is supposed to be decompressed at
211 # testing/talos/talos/fis|tests/tp5n in order to run tests like tps
212 # locally. Similarly, running talos requires a Python package virtual
213 # environment. Both the virtual environment and tp5n files end up littering
214 # the status command, so we ignore them.
215 ^testing/talos/.Python
217 ^testing/talos/include/
219 ^testing/talos/talos/fis/tp5n.zip
220 ^testing/talos/talos/fis/tp5n.tar.gz
221 ^testing/talos/talos/fis/tp5n
222 ^testing/talos/talos/tests/tp5n.zip
223 ^testing/talos/talos/tests/tp5n.tar.gz
224 ^testing/talos/talos/tests/tp5n
225 ^testing/talos/talos/tests/devtools/damp.manifest.develop
226 ^testing/talos/talos/startup_test/startup_about_home_paint/startup_about_home_paint.manifest.develop
227 ^testing/talos/talos/webextensions/
230 ^testing/talos/talos/mitmproxy/mitmdump
231 ^testing/talos/talos/mitmproxy/mitmproxy
232 ^testing/talos/talos/mitmproxy/mitmweb
234 # Ignore talos webkit benchmark files; source is copied from in-tree /third_party
235 # into testing/talos/talos/tests/webkit/PerformanceTests/ when run locally
236 # i.e. speedometer, motionmark, stylebench
237 ^testing/talos/talos/tests/webkit/PerformanceTests
239 # Ignore toolchains.json created by tooltool.
248 # Ignore files created when running a reftest.
251 # Ignore sync tps logs and reports
255 # Ignore Visual Studio/Visual Studio Code workspace files.
257 \.vscode/(?!extensions\.json|tasks\.json)
260 # https://bz.mercurial-scm.org/show_bug.cgi?id=5322
263 # Ignore various raptor performance framework files
264 ^testing/raptor/.raptor-venv
265 ^testing/raptor/raptor-venv
266 ^testing/raptor/raptor/tests/json/
267 ^testing/raptor/webext/raptor/auto_gen_test_config.js
269 # Ignore condprofile build directory
270 ^testing/condprofile/build
272 # Ignore browsertime output directory
275 # Ignore the build directories of WebGPU and WebRender standalone builds.
280 # Ignore Rust/Cargo output from running `cargo` directly for image_builder docker image
281 ^taskcluster/docker/image_builder/build-image/target
283 # Ignore ICU4X experimentation data files.
284 # See intl/ICU4X.md for more details.
285 ^config/external/icu4x
287 # Ignore the index files generated by clangd.
288 ^.cache/clangd/index/
293 # Ignore Storybook generated files
294 ^browser/components/storybook/node_modules/
295 ^browser/components/storybook/storybook-static/
296 ^browser/components/storybook/.storybook/chrome-map.js
297 ^browser/components/storybook/custom-elements.json
299 # Ignore jscodeshift installed by mach esmify on windows
300 ^tools/esmify/jscodeshift
301 ^tools/esmify/jscodeshift.cmd
302 ^tools/esmify/jscodeshift.ps1
303 ^tools/esmify/package-lock.json
305 # Ignore support files for en-US dictionary updates
306 ^extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/scowl
307 ^extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/support_files/
308 ^extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/*en_US-mozilla*
310 # Ignore automatically generated mots documentation
313 # Ignore generated directory with .class files for GeckoView annotation processor
314 ^mobile/android/annotations/bin/