# HG changeset patch # User Stefan Monnier # Date 1008520139 0 # Node ID fdee0c7c3bf18fbed58f46ab7f8f377d26df5a8a # Parent b37ba2c1da9a19a2a6a4a38c94fb34ea6b8ddfae (log-view-message-re, log-view-current-tag): Recognize Subversion's log output format. diff -r b37ba2c1da9a -r fdee0c7c3bf1 lisp/log-view.el --- 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 ;; 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.