diff options
| author | Stefan Monnier | 2008-03-18 20:52:17 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-03-18 20:52:17 +0000 |
| commit | 1690cfbfacd8c500cf5f77fe6d7670943a49c26a (patch) | |
| tree | e86852c7fd6c4d97002b98d03c7b3232fa68f5e7 | |
| parent | aec1ef0729fecde2dc7c322d6bbd52858104d2b7 (diff) | |
| download | emacs-1690cfbfacd8c500cf5f77fe6d7670943a49c26a.tar.gz emacs-1690cfbfacd8c500cf5f77fe6d7670943a49c26a.zip | |
(vc-bzr-log-view-mode, vc-bzr-annotate-command)
(vc-bzr-annotate-time, vc-bzr-annotate-extract-revision-at-line):
Revision numbers can include ".".
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | 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 @@ | |||
| 1 | 2008-03-18 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2008-03-18 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * vc-bzr.el (vc-bzr-log-view-mode, vc-bzr-annotate-command) | ||
| 4 | (vc-bzr-annotate-time, vc-bzr-annotate-extract-revision-at-line): | ||
| 5 | Revision numbers can include ".". | ||
| 6 | |||
| 3 | * diff-mode.el (diff-end-of-hunk): Be careful not to overlook trailing | 7 | * diff-mode.el (diff-end-of-hunk): Be careful not to overlook trailing |
| 4 | "+" lines not accounted for by counting "-" and context lines. | 8 | "+" lines not accounted for by counting "-" and context lines. |
| 5 | 9 | ||
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." | |||
| 357 | ;; Don't have file markers, so use impossible regexp. | 357 | ;; Don't have file markers, so use impossible regexp. |
| 358 | (set (make-local-variable 'log-view-file-re) "\\'\\`") | 358 | (set (make-local-variable 'log-view-file-re) "\\'\\`") |
| 359 | (set (make-local-variable 'log-view-message-re) | 359 | (set (make-local-variable 'log-view-message-re) |
| 360 | "^ *-+\n *\\(?:revno: \\([0-9]+\\)\\|merged: .+\\)") | 360 | "^ *-+\n *\\(?:revno: \\([0-9.]+\\)\\|merged: .+\\)") |
| 361 | (set (make-local-variable 'log-view-font-lock-keywords) | 361 | (set (make-local-variable 'log-view-font-lock-keywords) |
| 362 | ;; log-view-font-lock-keywords is careful to use the buffer-local | 362 | ;; log-view-font-lock-keywords is careful to use the buffer-local |
| 363 | ;; value of log-view-message-re only since Emacs-23. | 363 | ;; value of log-view-message-re only since Emacs-23. |
| @@ -436,7 +436,7 @@ property containing author and date information." | |||
| 436 | ;; to allow saving space by sharing the text properties. | 436 | ;; to allow saving space by sharing the text properties. |
| 437 | (setq vc-bzr-annotation-table (make-hash-table :test 'equal)) | 437 | (setq vc-bzr-annotation-table (make-hash-table :test 'equal)) |
| 438 | (goto-char (point-min)) | 438 | (goto-char (point-min)) |
| 439 | (while (re-search-forward "^\\( *[0-9]+ *\\) \\([^\n ]+\\) +\\([0-9]\\{8\\}\\) |" | 439 | (while (re-search-forward "^\\( *[0-9.]+ *\\) \\([^\n ]+\\) +\\([0-9]\\{8\\}\\) |" |
| 440 | nil t) | 440 | nil t) |
| 441 | (let* ((rev (match-string 1)) | 441 | (let* ((rev (match-string 1)) |
| 442 | (author (match-string 2)) | 442 | (author (match-string 2)) |
| @@ -452,7 +452,7 @@ property containing author and date information." | |||
| 452 | (insert tag " |"))))) | 452 | (insert tag " |"))))) |
| 453 | 453 | ||
| 454 | (defun vc-bzr-annotate-time () | 454 | (defun vc-bzr-annotate-time () |
| 455 | (when (re-search-forward "^ *[0-9]+ +|" nil t) | 455 | (when (re-search-forward "^ *[0-9.]+ +|" nil t) |
| 456 | (let ((prop (get-text-property (line-beginning-position) 'help-echo))) | 456 | (let ((prop (get-text-property (line-beginning-position) 'help-echo))) |
| 457 | (string-match "[0-9]+\\'" prop) | 457 | (string-match "[0-9]+\\'" prop) |
| 458 | (vc-annotate-convert-time | 458 | (vc-annotate-convert-time |
| @@ -467,7 +467,7 @@ property containing author and date information." | |||
| 467 | Return nil if current line isn't annotated." | 467 | Return nil if current line isn't annotated." |
| 468 | (save-excursion | 468 | (save-excursion |
| 469 | (beginning-of-line) | 469 | (beginning-of-line) |
| 470 | (if (looking-at " *\\([0-9]+\\) | ") | 470 | (if (looking-at " *\\([0-9.]+\\) | ") |
| 471 | (match-string-no-properties 1)))) | 471 | (match-string-no-properties 1)))) |
| 472 | 472 | ||
| 473 | (defun vc-bzr-command-discarding-stderr (command &rest args) | 473 | (defun vc-bzr-command-discarding-stderr (command &rest args) |