From: Sergei Organov <osv@javad.com>
To: bug-gnu-emacs@gnu.org
Subject: bug#5181: [PATCH] vc-revert-file: fix setting of file time-stamp into the past.
Date: Fri, 11 Dec 2009 19:12:39 +0300 [thread overview]
Message-ID: <87k4wtwkug.fsf@osv.gnss.ru> (raw)
The patch below fixes a long-standing bug in the VC, described here:
<http://lists.gnu.org/archive/html/bug-gnu-emacs/2009-05/msg00312.html>
2009-12-11 Sergei Organov <osv@javad.com>
* vc.el (vc-revert-file): Fix setting of file time-stamp into the
past.
Index: lisp/vc.el
===================================================================
RCS file: /sources/emacs/emacs/lisp/vc.el,v
retrieving revision 1.746
diff -u -r1.746 vc.el
--- lisp/vc.el 7 Dec 2009 09:02:16 -0000 1.746
+++ lisp/vc.el 11 Dec 2009 16:03:12 -0000
@@ -2114,7 +2114,7 @@
(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)
next reply other threads:[~2009-12-11 16:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-11 16:12 Sergei Organov [this message]
[not found] ` <handler.5181.B.126054797316423.ack@emacsbugs.donarmstrong.com>
2009-12-11 17:21 ` bug#5181: [PATCH] vc-revert-file: fix setting of file time-stamp into the past osv
2011-07-13 7:57 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k4wtwkug.fsf@osv.gnss.ru \
--to=osv@javad.com \
--cc=5181@emacsbugs.donarmstrong.com \
--cc=bug-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.