branch: elpa/vc-fossil
commit 798b5031f921e0462cc2264a3f3c5586f05bab62
Author: fifr <fifr>
Commit: fifr <fifr>

    Fix file name expansion in log command.
    
    The files to be processes may be specified by relative paths or paths
    containing "~". They must be expanded before being passed to fossil.
---
 vc/el/vc-fossil.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vc/el/vc-fossil.el b/vc/el/vc-fossil.el
index 3eae6e7..692cf9e 100644
--- a/vc/el/vc-fossil.el
+++ b/vc/el/vc-fossil.el
@@ -250,7 +250,7 @@ If `files` is nil return the status for all files."
                (nconc
                 (when start-revision (list "before" start-revision))
                 (when limit (list "-n" (number-to-string limit)))
-                (list "-p" file)))))))
+                (list "-p" (expand-file-name file))))))))
 
 (define-derived-mode vc-fossil-log-view-mode log-view-mode "Fossil-Log-View"
   (require 'add-log) ;; we need the add-log faces

Reply via email to