(vc-workfile-unchanged-p): Disable mtime check when we go via Tramp or
Ange-FTP. Suggested by Kai Grossjohann.
This commit is contained in:
parent
b75122e4bd
commit
04e777784e
1 changed files with 3 additions and 1 deletions
|
|
@ -481,7 +481,9 @@ and does not employ any heuristic at all."
|
|||
"Return non-nil if FILE has not changed since the last checkout."
|
||||
(let ((checkout-time (vc-file-getprop file 'vc-checkout-time))
|
||||
(lastmod (nth 5 (file-attributes file))))
|
||||
(if checkout-time
|
||||
(if (and checkout-time
|
||||
;; Tramp and Ange-FTP return this when they don't know the time.
|
||||
(not (equal lastmod '(0 0))))
|
||||
(equal checkout-time lastmod)
|
||||
(let ((unchanged (vc-call workfile-unchanged-p file)))
|
||||
(vc-file-setprop file 'vc-checkout-time (if unchanged lastmod 0))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue