diff --git a/contrib/hg/build-hgignore.pl b/contrib/hg/build-hgignore.pl index 8b20a28cd9..f3762b2462 100755 --- a/contrib/hg/build-hgignore.pl +++ b/contrib/hg/build-hgignore.pl @@ -65,6 +65,17 @@ print "Thinking...\n" # Start at the top level process("."); +# See if there's an .hgignore_local file. If so, add its contents to the end. +if (-f ".hgignore_local") { + open(IN, ".hgignore_local") || die "Can't open .hgignore_local"; + while () { + chomp; + push(@globals, $_); + } + + close(IN); +} + # If there's an old .hgignore, delete it unlink(".hgignore") if (-f ".hgignore");