# HG changeset patch # User Andr Spiegel # Date 1112376112 0 # Node ID 92bee19cd6888f720819a3cf73edfc417cf01e96 # Parent 27302c01afb408a5d9990aedbed4ab19b16c96a6 (vc-workfile-unchanged-p): Disable mtime check when we go via Tramp or Ange-FTP. Suggested by Kai Grossjohann. diff -r 27302c01afb4 -r 92bee19cd688 lisp/vc-hooks.el --- 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))