fix: vc-p4 doesn't recognize a file in its client because of case

When checking to see if a file is within a Perforce client, match the root
directory and current directory as reported by Perforce and ignore case

Sometimes (at least on Windows) the current directory and the client root can
point at the same directory, but because of the way Perforce creates directories
and files the case might differ.
Tom Willemse 2023-04-03 22:57:23 -07:00
parent 43c4b8fa56
commit 0637cddd58
1 changed files with 1 additions and 1 deletions

View File

@ -930,7 +930,7 @@ If DIRNAME is not specified, uses `default-directory'."
(info (p4-lowlevel-info))
(root (alist-get "Client root" info nil nil #'string=))
(cwd (alist-get "Current directory" info nil nil #'string=)))
(string-prefix-p root cwd)))
(string-prefix-p root cwd t)))
(defun vc-p4-has-unresolved-conflicts-p (file)
"Search through FILE's buffer for unresolved P4 conflicts.