.hgignore
author Ted Mielczarek <ted.mielczarek@gmail.com>
Tue, 29 Sep 2009 08:31:50 -0400
changeset 33292 5642cd4a7e88fdc016fcd95248cc6109b60be1f8
parent 33066 213da42e5f652ccbd9b946d5af831d85a0d47ead
child 33991 e245d8dfd2f2406a67152a238d68787a06d18166
permissions -rw-r--r--
bug 518641 - fix the "unify" script to properly handle Java .class files. r=bsmedberg Java .class files and Mach-O fat binaries use the same 4-byte magic number at the start of the file. 'unify' uses the magic number to detect Mach-O binaries, so it chokes on Java .class files. This change makes us use the same heuristic as file(1), which is to check the second 4 bytes in the file. Java class files put a version number there, and Mach-O fat binaries put the number of contained architectures there. Conveniently, Mach defines only 18 architectures, and Java's lowest shipping version number is 43, so there's no overlap in valid values.

# .hgignore - List of filenames hg should ignore

# Filenames that should be ignored wherever they appear
~$
\.pyc$
(^|/)TAGS$
(^|/)\.DS_Store$

# User files that may appear at the root
^\.mozconfig
^mozconfig
^configure$
^config\.cache$
^config\.log$
^ID$

# Empty marker file that's generated when we check out NSS
^security/manager/\.nss\.checkout$

# Build directories
^obj

# Build directories for js shell
_DBG\.OBJ/
_OPT\.OBJ/

# SpiderMonkey configury
^js/src/configure$
^js/src/autom4te.cache$

# Java HTML5 parser classes
^parser/html/java/(html|java)parser/