1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

* lisp/vc/vc-svn.el (vc-svn-state): Handle FILE with no directory.

This commit is contained in:
Sean Whitton 2025-11-29 14:29:35 +00:00
parent ad8ced8bbb
commit 577821f143

View file

@ -175,7 +175,8 @@ A value of `default' means to use the value of `vc-resolve-conflicts'."
"SVN-specific version of `vc-state'." "SVN-specific version of `vc-state'."
(let (process-file-side-effects) (let (process-file-side-effects)
(with-temp-buffer (with-temp-buffer
(cd (file-name-directory file)) (when-let* ((d (file-name-directory file)))
(cd d))
(vc-svn-command t 0 file "status" "-v") (vc-svn-command t 0 file "status" "-v")
(vc-svn-parse-status file)))) (vc-svn-parse-status file))))