]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-lookup-triple): Yield nil, not "", if NAME is nil.
authorPaul Eggert <eggert@twinsun.com>
Fri, 18 Feb 1994 02:51:33 +0000 (02:51 +0000)
committerPaul Eggert <eggert@twinsun.com>
Fri, 18 Feb 1994 02:51:33 +0000 (02:51 +0000)
Otherwise vc-revert-buffer fails with SCCS.

lisp/vc.el

index 896e126d17894fdc68b45e6e69eb025c5d12de3a..ed2040a2609b37ff8e4d3070d0f44dbefaf86d9e 100644 (file)
@@ -1038,7 +1038,7 @@ on a buffer attached to the file named in the current Dired buffer line."
 (defun vc-lookup-triple (file name)
   ;; Return the numeric version corresponding to a named snapshot of file
   ;; If name is nil or a version number string it's just passed through
-  (cond ((null name) "")
+  (cond ((null name) name)
        ((let ((firstchar (aref name 0)))
           (and (>= firstchar ?0) (<= firstchar ?9)))
         name)