Commit a1c9f41b authored by Sergei Organov's avatar Sergei Organov Committed by Glenn Morris
Browse files

* lisp/vc/vc.el (vc-revert-file): Don't set file time-stamp in the past.

Fixes: debbugs:5181
parent 0be0ce47
2011-07-13 Sergei Organov <osv@javad.com> (tiny change)
* vc/vc.el (vc-revert-file):
Don't set file time-stamp in the past. (Bug#5181)
2011-07-12 Lars Magne Ingebrigtsen <larsi@gnus.org>
* files.el (after-find-file): Give a better error message when
......
......@@ -2428,7 +2428,7 @@ its name; otherwise return nil."
(list file)
(let ((backup-file (vc-version-backup-file file)))
(when backup-file
(copy-file backup-file file 'ok-if-already-exists 'keep-date)
(copy-file backup-file file 'ok-if-already-exists)
(vc-delete-automatic-version-backups file))
(vc-call revert file backup-file))
`((vc-state . up-to-date)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment