]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/vc/vc-hg.el (vc-hg-annotate-re): Disallow ": " in file names.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 17 Apr 2013 00:50:44 +0000 (20:50 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 17 Apr 2013 00:50:44 +0000 (20:50 -0400)
Fixes: debbugs:14216
lisp/ChangeLog
lisp/vc/vc-hg.el

index 4a9c8cb22eceda7154e54cb2cf328f1957f73513..de1121fa131d75f66d0ec655de3eaddc3fd2b662 100644 (file)
@@ -1,3 +1,8 @@
+2013-04-17  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * vc/vc-hg.el (vc-hg-annotate-re): Disallow ": " in file names
+       (bug#14216).
+
 2013-04-17  Jean-Philippe Gravel  <jpgravel@gmail.com>
 
        * progmodes/gdb-mi.el (gdbmi-bnf-incomplete-record-result):
index f39ef568e8bc6d295d6f5bb0e587c772a9f20959..033e78c20cdabf3cd98958ae81b80e538cf9eb77 100644 (file)
@@ -357,7 +357,7 @@ Optional arg REVISION is a revision to annotate from."
 ;;215 Wed Jun 20 21:22:58 2007 -0700 foo.c: CONTENTS
 ;; i.e. VERSION_NUMBER DATE FILENAME: CONTENTS
 (defconst vc-hg-annotate-re
-  "^[ \t]*\\([0-9]+\\) \\(.\\{30\\}\\)\\(?:\\(: \\)\\|\\(?: +\\(.+\\): \\)\\)")
+  "^[ \t]*\\([0-9]+\\) \\(.\\{30\\}\\)\\(?:\\(: \\)\\|\\(?: +\\([^:\n]+\\(?::\\(?:[^: \n][^:\n]*\\)?\\)*\\): \\)\\)")
 
 (defun vc-hg-annotate-time ()
   (when (looking-at vc-hg-annotate-re)