aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/vc
diff options
context:
space:
mode:
authorPaul Eggert2012-08-23 21:05:25 -0700
committerPaul Eggert2012-08-23 21:05:25 -0700
commitca5256ad0a138d14329ca80a0a4fd952ca2cd092 (patch)
tree6de47e5336144b7405ae44f06ea6e4b9d24644b6 /lisp/vc
parent2cc2116757629868401bdb2073ff44ce32c3d008 (diff)
downloademacs-ca5256ad0a138d14329ca80a0a4fd952ca2cd092.tar.gz
emacs-ca5256ad0a138d14329ca80a0a4fd952ca2cd092.zip
Fix file time stamp problem with bzr and CVS (Bug#12001).
* vc/vc-cvs.el (vc-cvs-parse-entry): Ignore subsecond information in the file's time stamp, since the version control system loses that information.
Diffstat (limited to 'lisp/vc')
-rw-r--r--lisp/vc/vc-cvs.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/vc/vc-cvs.el b/lisp/vc/vc-cvs.el
index 2a672623c01..c1c4b750267 100644
--- a/lisp/vc/vc-cvs.el
+++ b/lisp/vc/vc-cvs.el
@@ -1178,7 +1178,11 @@ is non-nil."
1178 (parse-time-string (concat time " +0000"))))) 1178 (parse-time-string (concat time " +0000")))))
1179 (cond ((and (not (string-match "\\+" time)) 1179 (cond ((and (not (string-match "\\+" time))
1180 (car parsed-time) 1180 (car parsed-time)
1181 (equal mtime (apply 'encode-time parsed-time))) 1181 ;; Compare just the seconds part of the file time,
1182 ;; since CVS file time stamp resolution is just 1 second.
1183 (let ((ptime (apply 'encode-time parsed-time)))
1184 (and (eq (car mtime) (car ptime))
1185 (eq (cadr mtime) (cadr ptime)))))
1182 (vc-file-setprop file 'vc-checkout-time mtime) 1186 (vc-file-setprop file 'vc-checkout-time mtime)
1183 (if set-state (vc-file-setprop file 'vc-state 'up-to-date))) 1187 (if set-state (vc-file-setprop file 'vc-state 'up-to-date)))
1184 (t 1188 (t