--- a
+++ b/.hgignore
@@ -0,0 +1,38 @@
+syntax: regexp
+# The recurrent (^|/) idiom in the regexps below should be understood
+# to mean "at any directory" while the ^ idiom means "from the
+# project's top-level directory".
+
+(^|/).*\.dvi$
+(^|/).*\.pdf$
+(^|/).*\.o$
+(^|/).*\.oct$
+(^|/).*\.octlink$
+(^|/)octave-core$
+(^|/).*\.tar\.gz$
+(^|/).*\.html
+
+# some common files that the geometry package deals with
+# and are rarely meant to be actually committed
+(^|/).*\.png
+(^|/).*\.svg
+(^|/).*\.eps
+(^|/).*\.fig
+
+(^|/)aclocal\.m4$
+(^|/)configure$
+(^|/)autom4te\.cache($|/)
+
+# e.g. doc/faq/OctaveFAQ.info
+#      doc/interpreter/octave.info-4
+^doc/.*\.info(-\d)?$
+
+^doc/\w*/stamp-vti$
+^doc/\w*/version\.texi$
+
+# Emacs tools create these
+(^|/)TAGS$
+(^|/)semantic.cache$
+
+# Other text editors often create these
+(^|/)~.*