# HG changeset patch # User Mark A. Hershberger # Date 1264395730 18000 # Node ID 38312121c181b83de8815e93db765fd03dc31b30 # Parent e3fcbe16deaef5faae9c68316f438dfa53dff3b8 working version of vc-bzr-revision-table diff -r e3fcbe16deae -r 38312121c181 lisp/ChangeLog --- 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 - * 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 diff -r e3fcbe16deae -r 38312121c181 lisp/vc-bzr.el --- 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