Mercurial > emacs
changeset 61203:92bee19cd688
(vc-workfile-unchanged-p): Disable mtime check when we go via Tramp or
Ange-FTP. Suggested by Kai Grossjohann.
author | André Spiegel <spiegel@gnu.org> |
---|---|
date | Fri, 01 Apr 2005 17:21:52 +0000 |
parents | 27302c01afb4 |
children | 707e9504d752 |
files | lisp/vc-hooks.el |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/vc-hooks.el Fri Apr 01 15:42:23 2005 +0000 +++ b/lisp/vc-hooks.el Fri Apr 01 17:21:52 2005 +0000 @@ -481,7 +481,9 @@ "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))