diff options
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/vc/vc-cvs.el | 6 |
2 files changed, 12 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c92691b64b8..5236ad55903 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-08-24 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Fix file time stamp problem with bzr and CVS (Bug#12001). | ||
| 4 | * vc/vc-cvs.el (vc-cvs-parse-entry): Ignore subsecond information | ||
| 5 | in the file's time stamp, since the version control system loses | ||
| 6 | that information. | ||
| 7 | |||
| 1 | 2012-08-22 Juri Linkov <juri@jurta.org> | 8 | 2012-08-22 Juri Linkov <juri@jurta.org> |
| 2 | 9 | ||
| 3 | * info.el (Info-fontify-node): Hide the suffix of the | 10 | * info.el (Info-fontify-node): Hide the suffix of the |
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 |