changeset 42074:fdee0c7c3bf1

(log-view-message-re, log-view-current-tag): Recognize Subversion's log output format.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Sun, 16 Dec 2001 16:28:59 +0000
parents b37ba2c1da9a
children a39583392219
files lisp/log-view.el
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/log-view.el	Sun Dec 16 05:37:10 2001 +0000
+++ b/lisp/log-view.el	Sun Dec 16 16:28:59 2001 +0000
@@ -4,7 +4,7 @@
 
 ;; Author: Stefan Monnier <monnier@cs.yale.edu>
 ;; Keywords: rcs sccs cvs log version-control
-;; Revision: $Id: log-view.el,v 1.10 2001/11/16 13:53:05 monnier Exp $
+;; Revision: $Id: log-view.el,v 1.11 2001/11/26 16:08:51 spiegel Exp $
 
 ;; This file is part of GNU Emacs.
 
@@ -84,7 +84,7 @@
 	  "Working file: \\(.+\\)"
 	  "\\|SCCS/s\\.\\(.+\\):"
 	  "\\)\n"))
-(defconst log-view-message-re "^\\(revision \\([.0-9]+\\)\\|D \\([.0-9]+\\) .*\\)$")
+(defconst log-view-message-re "^\\(revision \\([.0-9]+\\)\\|rev \\([0-9]+\\):  .*\\|D \\([.0-9]+\\) .*\\)$")
 
 (defconst log-view-font-lock-keywords
   `((,log-view-file-re
@@ -150,7 +150,7 @@
     (forward-line 1)
     (let ((pt (point)))
       (when (re-search-backward log-view-message-re nil t)
-	(let ((rev (or (match-string 2) (match-string 3))))
+	(let ((rev (or (match-string 2) (match-string 3) (match-string 4))))
 	  (unless (re-search-forward log-view-file-re pt t)
 	    rev))))))
 
@@ -182,9 +182,9 @@
     (switch-to-buffer (vc-find-version (log-view-current-file) 
                                        (log-view-current-tag)))))
 
-;;;
-;;; diff
-;;;
+;;
+;; diff
+;;
 
 (defun log-view-diff (beg end)
   "Get the diff for several revisions.