diff options
| author | Mark A. Hershberger | 2010-01-25 00:02:10 -0500 |
|---|---|---|
| committer | Mark A. Hershberger | 2010-01-25 00:02:10 -0500 |
| commit | d9de6d6fab83a48d3c97eecf92149d17eccb8fe1 (patch) | |
| tree | 376f5c090e700c1464f0b4230a8aef1b16478ecd | |
| parent | b1bb0a2570b8a40017220097c40c6057cfe17efe (diff) | |
| download | emacs-d9de6d6fab83a48d3c97eecf92149d17eccb8fe1.tar.gz emacs-d9de6d6fab83a48d3c97eecf92149d17eccb8fe1.zip | |
working version of vc-bzr-revision-table
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc-bzr.el | 13 |
2 files changed, 17 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1b5d8f241ec..e3c34554afe 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,6 +1,9 @@ | |||
| 1 | 2010-01-24 Mark A. Hershberger <mah@everybody.org> | 1 | 2010-01-24 Mark A. Hershberger <mah@everybody.org> |
| 2 | 2 | ||
| 3 | * progmodes/python.el: Replace reference to obsolete c-subward-mode. | 3 | * progmodes/python.el: Replace reference to obsolete |
| 4 | c-subward-mode. | ||
| 5 | |||
| 6 | * vc-bzr.el: (vc-bzr-revision-table) New function. | ||
| 4 | 7 | ||
| 5 | 2010-01-24 Dan Nicolaescu <dann@ics.uci.edu> | 8 | 2010-01-24 Dan Nicolaescu <dann@ics.uci.edu> |
| 6 | 9 | ||
diff --git a/lisp/vc-bzr.el b/lisp/vc-bzr.el index d04c783ca32..b3bbc272faa 100644 --- a/lisp/vc-bzr.el +++ b/lisp/vc-bzr.el | |||
| @@ -898,6 +898,19 @@ stream. Standard error output is discarded." | |||
| 898 | (interactive "e") | 898 | (interactive "e") |
| 899 | (vc-dir-at-event e (popup-menu vc-bzr-shelve-menu-map e))) | 899 | (vc-dir-at-event e (popup-menu vc-bzr-shelve-menu-map e))) |
| 900 | 900 | ||
| 901 | (defun vc-bzr-revision-table (files) | ||
| 902 | (let ((vc-bzr-revisions '()) | ||
| 903 | (default-directory (file-name-directory (car files)))) | ||
| 904 | (with-temp-buffer | ||
| 905 | (vc-bzr-command "log" t 0 files "--line") | ||
| 906 | (let ((start (point-min)) | ||
| 907 | (loglines (buffer-substring-no-properties (point-min) (point-max)))) | ||
| 908 | (while (string-match "^\\([0-9]+\\):" loglines) | ||
| 909 | (push (match-string 1 loglines) vc-bzr-revisions) | ||
| 910 | (setq start (+ start (match-end 0))) | ||
| 911 | (setq loglines (buffer-substring-no-properties start (point-max)))))) | ||
| 912 | vc-bzr-revisions)) | ||
| 913 | |||
| 901 | ;;; Revision completion | 914 | ;;; Revision completion |
| 902 | 915 | ||
| 903 | (eval-and-compile | 916 | (eval-and-compile |