From: Stephen Leake Date: Thu, 30 Jul 2015 06:25:47 +0000 (-0500) Subject: vc-mtn-find-revision handle null rev. X-Git-Tag: emacs-25.0.90~1413 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=91718f5f451aa99aaf9e4c48ecfc4d5c0535dc79;p=emacs.git vc-mtn-find-revision handle null rev. * lisp/vc/vc-mtn.el (vc-mtn-find-revision): handle null rev --- 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." 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) ;; )