branch: elpa/vc-fossil commit 54df12a4a6ee90b51db908217bb491a532bb3fd5 Author: fifr <fifr> Commit: fifr <fifr>
Fix parameter passing in `vc-fossil-find-revision`. The parameter `vc-checkout-switches` can be a list OR a string. --- vc/el/vc-fossil.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/vc/el/vc-fossil.el b/vc/el/vc-fossil.el index d32a724..f39cef7 100644 --- a/vc/el/vc-fossil.el +++ b/vc/el/vc-fossil.el @@ -202,10 +202,14 @@ If `files` is nil return the status for all files." (if (zerop (length rev)) (apply #'vc-fossil-command buffer 0 file "cat" - vc-checkout-switches) + (if (listp vc-checkout-switches) + vc-checkout-switches + (list vc-checkout-switches))) (apply #'vc-fossil-command buffer 0 file "cat" "-r" rev - vc-checkout-switches))) + (if (listp vc-checkout-switches) + vc-checkout-switches + (list vc-checkout-switches))))) (defun vc-fossil-checkout (file &optional editable rev) (apply #'vc-fossil-command nil 0 file