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 ASRouter generated test files
61 ^browser/components/newtab/content-src/asrouter/schemas/corpus/CFRMessageProvider.messages.json
62 ^browser/components/newtab/content-src/asrouter/schemas/corpus/OnboardingMessageProvider.messages.json
63 ^browser/components/newtab/content-src/asrouter/schemas/corpus/PanelTestProvider.messages.json
64 ^browser/components/newtab/content-src/asrouter/schemas/corpus/PanelTestProvider_toast_notification.messages.json
66 # Ignore Pocket component build and dev assets
67 browser/components/pocket/content/panels/css/main.compiled.css.map
69 # Build directories for js shell
75 # SpiderMonkey configury
76 ^js/src/old-configure$
77 ^js/src/autom4te.cache$
78 # SpiderMonkey test result logs
79 ^js/src/tests/results-.*\.(html|txt)$
80 ^js/src/devtools/rootAnalysis/t/out
81 # SpiderMonkey wasm/generate-spectests artifacts
82 ^js/src/jit-test/etc/wasm/generate-spectests/specs/
83 ^js/src/jit-test/etc/wasm/generate-spectests/tests/
84 ^js/src/jit-test/etc/wasm/generate-spectests/target/
86 # Java HTML5 parser classes
87 ^parser/html/java/(html|java)parser/
92 # Ignore the files and directory that Eclipse IDE creates
97 # Ignore the files and directory that JetBrains IDEs create.
100 # Android Monitor in Android Studio creates a captures/ directory.
106 # Local Gradle configuration properties.
112 # Ignore chrome.manifest files from the devtools loader
113 ^devtools/client/chrome.manifest$
114 ^devtools/shared/chrome.manifest$
116 # Ignore node_modules directories in devtools
117 ^devtools/.*/node_modules/
119 # Ignore node_module directories and npm artifacts
120 ^remote/test/puppeteer/.*\.tsbuildinfo
121 ^remote/test/puppeteer/.*/lib/
122 ^remote/test/puppeteer/.*/node_modules/
123 ^remote/test/puppeteer/.*/\.wireit/
124 ^remote/test/puppeteer/\.devcontainer/
125 ^remote/test/puppeteer/\.github
126 ^remote/test/puppeteer/\.husky
127 ^remote/test/puppeteer/\.wireit/
128 ^remote/test/puppeteer/coverage/
129 ^remote/test/puppeteer/docker/
130 ^remote/test/puppeteer/docs/puppeteer-core\.api\.json
131 ^remote/test/puppeteer/docs/puppeteer\.api\.json
132 ^remote/test/puppeteer/experimental/
133 ^remote/test/puppeteer/lib/
134 ^remote/test/puppeteer/node_modules/
135 ^remote/test/puppeteer/package-lock\.json
136 ^remote/test/puppeteer/packages/ng-schematics/test/build
137 ^remote/test/puppeteer/packages/puppeteer/.*/README.md
138 ^remote/test/puppeteer/packages/puppeteer-core/src/generated
139 ^remote/test/puppeteer/packages/puppeteer-core/.*/README.md
140 ^remote/test/puppeteer/src/generated
141 ^remote/test/puppeteer/test/build
142 ^remote/test/puppeteer/test/installation/puppeteer.*\.tgz
143 ^remote/test/puppeteer/test/output-firefox
144 ^remote/test/puppeteer/test/output-chromium
145 ^remote/test/puppeteer/testserver/lib/
146 ^remote/test/puppeteer/utils/mochaRunner/lib/
147 ^remote/test/puppeteer/website
149 ^third_party/js/PKI.js/node_modules/
150 ^third_party/js/PKI.js/package-lock.json
152 # git checkout of libstagefright
153 ^media/libstagefright/android$
155 # Tag files generated by GNU Global
161 # Git clone directory for updating web-platform-tests
162 ^testing/web-platform/sync/
164 # Third party metadata for web-platform-tests
165 ^testing/web-platform/products/
167 # Android Gradle artifacts.
168 ^mobile/android/gradle/.gradle
170 # XCode project cruft
173 # Rust/Cargo output from running `cargo` directly
175 ^servo/ports/geckolib/target/
176 ^dom/base/rust/target/
177 ^servo/components/style/target/
178 ^dom/webgpu/tests/cts/vendor/target/
180 # Ignore mozharness execution files
181 ^testing/mozharness/.tox/
182 ^testing/mozharness/build/
183 ^testing/mozharness/logs/
184 ^testing/mozharness/.coverage
185 ^testing/mozharness/nosetests.xml
187 # Ignore tox generated dir
190 # Ignore ESLint and other tool's node_modules.
192 ^tools/browsertime/node_modules/
193 ^tools/lint/eslint/eslint-plugin-mozilla/node_modules/
194 ^browser/components/newtab/node_modules/
195 ^tools/esmify/node_modules/
197 # Ignore talos virtualenv and tp5n files.
198 # The tp5n set is supposed to be decompressed at
199 # testing/talos/talos/fis|tests/tp5n in order to run tests like tps
200 # locally. Similarly, running talos requires a Python package virtual
201 # environment. Both the virtual environment and tp5n files end up littering
202 # the status command, so we ignore them.
203 ^testing/talos/.Python
205 ^testing/talos/include/
207 ^testing/talos/talos/fis/tp5n.zip
208 ^testing/talos/talos/fis/tp5n.tar.gz
209 ^testing/talos/talos/fis/tp5n
210 ^testing/talos/talos/tests/tp5n.zip
211 ^testing/talos/talos/tests/tp5n.tar.gz
212 ^testing/talos/talos/tests/tp5n
213 ^testing/talos/talos/tests/devtools/damp.manifest.develop
214 ^testing/talos/talos/startup_test/startup_about_home_paint/startup_about_home_paint.manifest.develop
215 ^testing/talos/talos/webextensions/
218 ^testing/talos/talos/mitmproxy/mitmdump
219 ^testing/talos/talos/mitmproxy/mitmproxy
220 ^testing/talos/talos/mitmproxy/mitmweb
222 # Ignore talos webkit benchmark files; source is copied from in-tree /third_party
223 # into testing/talos/talos/tests/webkit/PerformanceTests/ when run locally
224 # i.e. speedometer, motionmark, stylebench
225 ^testing/talos/talos/tests/webkit/PerformanceTests
227 # Ignore toolchains.json created by tooltool.
236 # Ignore files created when running a reftest.
239 # Ignore sync tps logs and reports
243 # Ignore Visual Studio/Visual Studio Code workspace files.
245 \.vscode/(?!extensions\.json|tasks\.json)
248 # https://bz.mercurial-scm.org/show_bug.cgi?id=5322
251 # Ignore various raptor performance framework files
252 ^testing/raptor/.raptor-venv
253 ^testing/raptor/raptor-venv
254 ^testing/raptor/raptor/tests/json/
255 ^testing/raptor/webext/raptor/auto_gen_test_config.js
257 # Ignore condprofile build directory
258 ^testing/condprofile/build
260 # Ignore browsertime output directory
263 # Ignore the build directories of WebGPU and WebRender standalone builds.
268 # Ignore Rust/Cargo output from running `cargo` directly for image_builder docker image
269 ^taskcluster/docker/image_builder/build-image/target
271 # Ignore ICU4X experimentation data files.
272 # See intl/ICU4X.md for more details.
273 ^config/external/icu4x
275 # Ignore the index files generated by clangd.
276 ^.cache/clangd/index/
281 # Ignore Storybook generated files
282 ^browser/components/storybook/node_modules/
283 ^browser/components/storybook/storybook-static/
284 ^browser/components/storybook/.storybook/chrome-map.js
285 ^browser/components/storybook/custom-elements.json
287 # Ignore jscodeshift installed by mach esmify on windows
288 ^tools/esmify/jscodeshift
289 ^tools/esmify/jscodeshift.cmd
290 ^tools/esmify/jscodeshift.ps1
291 ^tools/esmify/package-lock.json
293 # Ignore support files for en-US dictionary updates
294 ^extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/scowl
295 ^extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/support_files/
296 ^extensions/spellcheck/locales/en-US/hunspell/dictionary-sources/*en_US-mozilla*
298 # Ignore automatically generated mots documentation
301 # Ignore generated directory with .class files for GeckoView annotation processor
302 ^mobile/android/annotations/bin/