[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 91718f5: vc-mtn-find-revision handle null rev.
From: |
Stephen Leake |
Subject: |
[Emacs-diffs] master 91718f5: vc-mtn-find-revision handle null rev. |
Date: |
Thu, 30 Jul 2015 06:32:49 +0000 |
branch: master
commit 91718f5f451aa99aaf9e4c48ecfc4d5c0535dc79
Author: Stephen Leake <address@hidden>
Commit: Stephen Leake <address@hidden>
vc-mtn-find-revision handle null rev.
* lisp/vc/vc-mtn.el (vc-mtn-find-revision): handle null rev
---
lisp/vc/vc-mtn.el | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/lisp/vc/vc-mtn.el b/lisp/vc/vc-mtn.el
index 944a83e..685ef3b 100644
--- a/lisp/vc/vc-mtn.el
+++ b/lisp/vc/vc-mtn.el
@@ -207,7 +207,10 @@ switches."
comment))))
(defun vc-mtn-find-revision (file rev buffer)
- (vc-mtn-command buffer 0 file "cat" "-r" rev))
+ ;; null rev means latest revision
+ (if rev
+ (vc-mtn-command buffer 0 file "cat" "-r" rev)
+ (vc-mtn-command buffer 0 file "cat")))
;; (defun vc-mtn-checkout (file &optional rev)
;; )
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 91718f5: vc-mtn-find-revision handle null rev.,
Stephen Leake <=