summaryrefslogtreecommitdiff
path: root/lisp/vc-mtn.el
diff options
context:
space:
mode:
authorDan Nicolaescu <dann@ics.uci.edu>2009-11-15 20:28:58 +0000
committerDan Nicolaescu <dann@ics.uci.edu>2009-11-15 20:28:58 +0000
commit6616006b025a584a907e70dfffe54f65fc89e058 (patch)
treed1c2d9a0919cd070081cd22b2ce3ddb7d4419297 /lisp/vc-mtn.el
parentf8e65267070633b270e2edf46bd9b521168e5358 (diff)
downloademacs-6616006b025a584a907e70dfffe54f65fc89e058.tar.gz
emacs-6616006b025a584a907e70dfffe54f65fc89e058.tar.bz2
emacs-6616006b025a584a907e70dfffe54f65fc89e058.zip
* vc.el (vc-log-show-limit): New variable.
(vc-print-log, vc-print-root-log): Add new argument LIMIT. Set it when using a prefix argument. (vc-print-log-internal): Add new argument LIMIT. * vc-svn.el (vc-svn-print-log): * vc-mtn.el (vc-mtn-print-log): * vc-hg.el (vc-hg-print-log): * vc-bzr.el (vc-bzr-print-log): Add new optional argument LIMIT, pass it to the log command when set. Make the BUFFER argument non-optional. * vc-sccs.el (vc-sccs-print-log): * vc-rcs.el (vc-rcs-print-log): * vc-git.el (vc-git-print-log): * vc-cvs.el (vc-cvs-print-log): Add new optional argument LIMIT, ignore it. Make the BUFFER argument non-optional
Diffstat (limited to 'lisp/vc-mtn.el')
-rw-r--r--lisp/vc-mtn.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/vc-mtn.el b/lisp/vc-mtn.el
index e03dfaad350..05be5c8ef11 100644
--- a/lisp/vc-mtn.el
+++ b/lisp/vc-mtn.el
@@ -188,8 +188,9 @@ If nil, use the value of `vc-diff-switches'. If t, use no switches."
;; (defun vc-mtn-roolback (files)
;; )
-(defun vc-mtn-print-log (files &optional buffer shortlog)
- (vc-mtn-command buffer 0 files "log"))
+(defun vc-mtn-print-log (files buffer &optional shortlog limit)
+ (apply 'vc-mtn-command buffer 0 files "log"
+ (when limit (list "--last" (format "%s" limit)))))
(defvar log-view-message-re)
(defvar log-view-file-re)