From 1690cfbfacd8c500cf5f77fe6d7670943a49c26a Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Tue, 18 Mar 2008 20:52:17 +0000 Subject: [PATCH] (vc-bzr-log-view-mode, vc-bzr-annotate-command) (vc-bzr-annotate-time, vc-bzr-annotate-extract-revision-at-line): Revision numbers can include ".". --- lisp/ChangeLog | 4 ++++ lisp/vc-bzr.el | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a6fa4241630..6aefa76f7d7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,9 @@ 2008-03-18 Stefan Monnier + * vc-bzr.el (vc-bzr-log-view-mode, vc-bzr-annotate-command) + (vc-bzr-annotate-time, vc-bzr-annotate-extract-revision-at-line): + Revision numbers can include ".". + * diff-mode.el (diff-end-of-hunk): Be careful not to overlook trailing "+" lines not accounted for by counting "-" and context lines. diff --git a/lisp/vc-bzr.el b/lisp/vc-bzr.el index 3f64247fc69..325b8e1c7fb 100644 --- a/lisp/vc-bzr.el +++ b/lisp/vc-bzr.el @@ -357,7 +357,7 @@ EDITABLE is ignored." ;; Don't have file markers, so use impossible regexp. (set (make-local-variable 'log-view-file-re) "\\'\\`") (set (make-local-variable 'log-view-message-re) - "^ *-+\n *\\(?:revno: \\([0-9]+\\)\\|merged: .+\\)") + "^ *-+\n *\\(?:revno: \\([0-9.]+\\)\\|merged: .+\\)") (set (make-local-variable 'log-view-font-lock-keywords) ;; log-view-font-lock-keywords is careful to use the buffer-local ;; value of log-view-message-re only since Emacs-23. @@ -436,7 +436,7 @@ property containing author and date information." ;; to allow saving space by sharing the text properties. (setq vc-bzr-annotation-table (make-hash-table :test 'equal)) (goto-char (point-min)) - (while (re-search-forward "^\\( *[0-9]+ *\\) \\([^\n ]+\\) +\\([0-9]\\{8\\}\\) |" + (while (re-search-forward "^\\( *[0-9.]+ *\\) \\([^\n ]+\\) +\\([0-9]\\{8\\}\\) |" nil t) (let* ((rev (match-string 1)) (author (match-string 2)) @@ -452,7 +452,7 @@ property containing author and date information." (insert tag " |"))))) (defun vc-bzr-annotate-time () - (when (re-search-forward "^ *[0-9]+ +|" nil t) + (when (re-search-forward "^ *[0-9.]+ +|" nil t) (let ((prop (get-text-property (line-beginning-position) 'help-echo))) (string-match "[0-9]+\\'" prop) (vc-annotate-convert-time @@ -467,7 +467,7 @@ property containing author and date information." Return nil if current line isn't annotated." (save-excursion (beginning-of-line) - (if (looking-at " *\\([0-9]+\\) | ") + (if (looking-at " *\\([0-9.]+\\) | ") (match-string-no-properties 1)))) (defun vc-bzr-command-discarding-stderr (command &rest args) -- 2.39.5