diff options
| author | Dan Nicolaescu | 2008-03-14 01:52:59 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-03-14 01:52:59 +0000 |
| commit | f392f8b441a33a3b240e59c703d4fe176e502ef9 (patch) | |
| tree | b6a1596d88fd9fabbaec51195c7c576504cf1cbd | |
| parent | a71a98cf8336c6e11d2fad89ebf74a92f13e5e1c (diff) | |
| download | emacs-f392f8b441a33a3b240e59c703d4fe176e502ef9.tar.gz emacs-f392f8b441a33a3b240e59c703d4fe176e502ef9.zip | |
(vc-bzr-log-view-mode): "." can be part of a revno.
(vc-bzr-show-log-entry): Make regexp match more cases.
(vc-diff-switches-list): Remove autoload, not needed.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/vc-bzr.el | 11 |
2 files changed, 13 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 75913bef6c4..07eb1fb2f44 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2008-03-14 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * vc-bzr.el (vc-bzr-log-view-mode): "." can be part of a revno. | ||
| 4 | (vc-bzr-show-log-entry): Make regexp match more cases. | ||
| 5 | (vc-diff-switches-list): Remove autoload, not needed. | ||
| 6 | |||
| 1 | 2008-03-14 Juri Linkov <juri@jurta.org> | 7 | 2008-03-14 Juri Linkov <juri@jurta.org> |
| 2 | 8 | ||
| 3 | * isearch.el (isearch-edit-string): Remove one call to | 9 | * isearch.el (isearch-edit-string): Remove one call to |
diff --git a/lisp/vc-bzr.el b/lisp/vc-bzr.el index e126296d779..8e91c5c1b4d 100644 --- a/lisp/vc-bzr.el +++ b/lisp/vc-bzr.el | |||
| @@ -378,7 +378,7 @@ EDITABLE is ignored." | |||
| 378 | ;; Don't have file markers, so use impossible regexp. | 378 | ;; Don't have file markers, so use impossible regexp. |
| 379 | (set (make-local-variable 'log-view-file-re) "\\'\\`") | 379 | (set (make-local-variable 'log-view-file-re) "\\'\\`") |
| 380 | (set (make-local-variable 'log-view-message-re) | 380 | (set (make-local-variable 'log-view-message-re) |
| 381 | "^ *-+\n *\\(?:revno: \\([0-9]+\\)\\|merged: .+\\)") | 381 | "^ *-+\n *\\(?:revno: \\([0-9.]+\\)\\|merged: .+\\)") |
| 382 | (set (make-local-variable 'log-view-font-lock-keywords) | 382 | (set (make-local-variable 'log-view-font-lock-keywords) |
| 383 | ;; log-view-font-lock-keywords is careful to use the buffer-local | 383 | ;; log-view-font-lock-keywords is careful to use the buffer-local |
| 384 | ;; value of log-view-message-re only since Emacs-23. | 384 | ;; value of log-view-message-re only since Emacs-23. |
| @@ -408,12 +408,15 @@ EDITABLE is ignored." | |||
| 408 | "Find entry for patch name REVISION in bzr change log buffer." | 408 | "Find entry for patch name REVISION in bzr change log buffer." |
| 409 | (goto-char (point-min)) | 409 | (goto-char (point-min)) |
| 410 | (let (case-fold-search) | 410 | (let (case-fold-search) |
| 411 | (if (re-search-forward (concat "^-+\nrevno: " revision "$") nil t) | 411 | (if (re-search-forward |
| 412 | ;; "revno:" can appear either at the beginning of a line, or indented. | ||
| 413 | (concat "^[ ]*-+\n[ ]*revno: " | ||
| 414 | ;; The revision can contain ".", quote it so that it | ||
| 415 | ;; does not interfere with regexp matching. | ||
| 416 | (regexp-quote revision) "$") nil t) | ||
| 412 | (beginning-of-line 0) | 417 | (beginning-of-line 0) |
| 413 | (goto-char (point-min))))) | 418 | (goto-char (point-min))))) |
| 414 | 419 | ||
| 415 | (autoload 'vc-diff-switches-list "vc" nil nil t) | ||
| 416 | |||
| 417 | (defun vc-bzr-diff (files &optional rev1 rev2 buffer) | 420 | (defun vc-bzr-diff (files &optional rev1 rev2 buffer) |
| 418 | "VC bzr backend for diff." | 421 | "VC bzr backend for diff." |
| 419 | ;; `bzr diff' exits with code 1 if diff is non-empty | 422 | ;; `bzr diff' exits with code 1 if diff is non-empty |