aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2007-10-20 01:11:18 +0000
committerStefan Monnier2007-10-20 01:11:18 +0000
commit87d1a48e20b4121c467548984f5a76457d09cf62 (patch)
treeede56285f41b1a51ddbb1efc51b50c21a8c69e2b
parent9f11ce4ec359555a7bf6f26479c6a9a2f2aa9afe (diff)
downloademacs-87d1a48e20b4121c467548984f5a76457d09cf62.tar.gz
emacs-87d1a48e20b4121c467548984f5a76457d09cf62.zip
(vc-hg-revision-completion-table, vc-hg-revision-table): Make it work when the
arg is a list of files.
-rw-r--r--lisp/ChangeLog1
-rw-r--r--lisp/vc-hg.el10
2 files changed, 6 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index eb6859e2fe7..eeec0e278ca 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,6 @@
12007-10-20 Stefan Monnier <monnier@iro.umontreal.ca> 12007-10-20 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * vc-hg.el (vc-hg-revision-completion-table, vc-hg-revision-table):
3 * vc-git.el (vc-git-revision-completion-table, vc-git-revision-table): 4 * vc-git.el (vc-git-revision-completion-table, vc-git-revision-table):
4 * vc-cvs.el (vc-cvs-revision-completion-table): 5 * vc-cvs.el (vc-cvs-revision-completion-table):
5 * vc-arch.el (vc-arch-revision-completion-table): Make it work when the 6 * vc-arch.el (vc-arch-revision-completion-table): Make it work when the
diff --git a/lisp/vc-hg.el b/lisp/vc-hg.el
index 2e90d06fbc5..8e9cf15688b 100644
--- a/lisp/vc-hg.el
+++ b/lisp/vc-hg.el
@@ -294,19 +294,19 @@
294 (list "-r" oldvers)) 294 (list "-r" oldvers))
295 (list "")))))) 295 (list ""))))))
296 296
297(defun vc-hg-revision-table (file) 297(defun vc-hg-revision-table (files)
298 (let ((default-directory (file-name-directory file))) 298 (let ((default-directory (file-name-directory (car files))))
299 (with-temp-buffer 299 (with-temp-buffer
300 (vc-hg-command t nil file "log" "--template" "{rev} ") 300 (vc-hg-command t nil file "log" "--template" "{rev} ")
301 (split-string 301 (split-string
302 (buffer-substring-no-properties (point-min) (point-max)))))) 302 (buffer-substring-no-properties (point-min) (point-max))))))
303 303
304;; Modelled after the similar function in vc-cvs.el 304;; Modelled after the similar function in vc-cvs.el
305(defun vc-hg-revision-completion-table (file) 305(defun vc-hg-revision-completion-table (files)
306 (lexical-let ((file file) 306 (lexical-let ((files files)
307 table) 307 table)
308 (setq table (lazy-completion-table 308 (setq table (lazy-completion-table
309 table (lambda () (vc-hg-revision-table file)))) 309 table (lambda () (vc-hg-revision-table files))))
310 table)) 310 table))
311 311
312(defun vc-hg-diff-tree (file &optional oldvers newvers buffer) 312(defun vc-hg-diff-tree (file &optional oldvers newvers buffer)