Mercurial > emacs
changeset 106982:38312121c181
working version of vc-bzr-revision-table
author | Mark A. Hershberger <mhershberger@intrahealth.org> |
---|---|
date | Mon, 25 Jan 2010 00:02:10 -0500 |
parents | e3fcbe16deae |
children | 61edd42cf483 |
files | lisp/ChangeLog lisp/vc-bzr.el |
diffstat | 2 files changed, 17 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Sun Jan 24 23:52:26 2010 -0500 +++ b/lisp/ChangeLog Mon Jan 25 00:02:10 2010 -0500 @@ -1,6 +1,9 @@ 2010-01-24 Mark A. Hershberger <mah@everybody.org> - * progmodes/python.el: Replace reference to obsolete c-subward-mode. + * progmodes/python.el: Replace reference to obsolete + c-subward-mode. + + * vc-bzr.el: (vc-bzr-revision-table) New function. 2010-01-24 Dan Nicolaescu <dann@ics.uci.edu>
--- a/lisp/vc-bzr.el Sun Jan 24 23:52:26 2010 -0500 +++ b/lisp/vc-bzr.el Mon Jan 25 00:02:10 2010 -0500 @@ -898,6 +898,19 @@ (interactive "e") (vc-dir-at-event e (popup-menu vc-bzr-shelve-menu-map e))) +(defun vc-bzr-revision-table (files) + (let ((vc-bzr-revisions '()) + (default-directory (file-name-directory (car files)))) + (with-temp-buffer + (vc-bzr-command "log" t 0 files "--line") + (let ((start (point-min)) + (loglines (buffer-substring-no-properties (point-min) (point-max)))) + (while (string-match "^\\([0-9]+\\):" loglines) + (push (match-string 1 loglines) vc-bzr-revisions) + (setq start (+ start (match-end 0))) + (setq loglines (buffer-substring-no-properties start (point-max)))))) + vc-bzr-revisions)) + ;;; Revision completion (eval-and-compile