The problem is that vc-hg--slurp-hgignore-1 believes that default-syntax
should be vc-hg--hgignore-add-glob, but the default syntax in an
.hgignore file is actually Python/Perl regular expressions. Changing the
default value to vc-hg--hgignore-add-pcre seems to fix the problem:
modified lisp/vc/vc-hg.el
@@ -826,7 +826,7 @@ vc-hg--hgignore-add-path
prefix)))
(defun vc-hg--slurp-hgignore-1 (hgignore prefix)
- (let ((default-syntax 'vc-hg--hgignore-add-glob))
+ (let ((default-syntax 'vc-hg--hgignore-add-pcre))
(with-temp-buffer
(let ((attr (file-attributes hgignore)))
(when attr (insert-file-contents hgignore))