bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#26249: 26.0.50; vc-hg.el assumes wrong default ignore pattern syntax


From: Dmitry Gutov
Subject: bug#26249: 26.0.50; vc-hg.el assumes wrong default ignore pattern syntax
Date: Mon, 10 Apr 2017 05:53:35 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0

Version: 26.1

On 25.03.2017 03:07, Jim Blandy wrote:

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))

Thanks! Applied.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]