changeset 331:ecb85d3ba960

textmate.el: use hg locate for speed
author Augie Fackler <raf@durin42.com>
date Tue, 11 Mar 2014 14:16:42 -0400
parents 629b500e1276
children ec41fb19c4c8
files .elisp/textmate.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/.elisp/textmate.el
+++ b/.elisp/textmate.el
@@ -321,12 +321,12 @@ specific type of file."
           (command
            (cond ((not (string= type "unknown"))
                    (concat (cond ((string= type "git") "git ls-files")
-                                 ((string= type "hg") "hg manifest"))
+                                 ((string= type "hg") "hg locate 'set:added() or modified() or clean()'"))
                            (if *textmate-vcs-exclude*
                                (concat " | egrep --color=never -v "
                                        (shell-quote-argument *textmate-vcs-exclude*))
                              "")
-                           " | xargs egrep --color=never -nR "
+                           " | xargs egrep --color=never -n "
                            (if pattern (concat " --include='" pattern "' ") "")
                            " -- "
                            (shell-quote-argument re)))