diff options
| author | Stephen Leake | 2015-07-30 01:25:47 -0500 |
|---|---|---|
| committer | Stephen Leake | 2015-07-30 01:25:47 -0500 |
| commit | 91718f5f451aa99aaf9e4c48ecfc4d5c0535dc79 (patch) | |
| tree | 89a8e39894665ae27cf4b45722e7bd1d1b6fc60a | |
| parent | 3b9d689c2abb294250de6c690d77e9175952be72 (diff) | |
| download | emacs-91718f5f451aa99aaf9e4c48ecfc4d5c0535dc79.tar.gz emacs-91718f5f451aa99aaf9e4c48ecfc4d5c0535dc79.zip | |
vc-mtn-find-revision handle null rev.
* lisp/vc/vc-mtn.el (vc-mtn-find-revision): handle null rev
| -rw-r--r-- | 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 944a83ebc69..685ef3b6742 100644 --- a/lisp/vc/vc-mtn.el +++ b/lisp/vc/vc-mtn.el | |||
| @@ -207,7 +207,10 @@ switches." | |||
| 207 | comment)))) | 207 | comment)))) |
| 208 | 208 | ||
| 209 | (defun vc-mtn-find-revision (file rev buffer) | 209 | (defun vc-mtn-find-revision (file rev buffer) |
| 210 | (vc-mtn-command buffer 0 file "cat" "-r" rev)) | 210 | ;; null rev means latest revision |
| 211 | (if rev | ||
| 212 | (vc-mtn-command buffer 0 file "cat" "-r" rev) | ||
| 213 | (vc-mtn-command buffer 0 file "cat"))) | ||
| 211 | 214 | ||
| 212 | ;; (defun vc-mtn-checkout (file &optional rev) | 215 | ;; (defun vc-mtn-checkout (file &optional rev) |
| 213 | ;; ) | 216 | ;; ) |