unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5181: [PATCH] vc-revert-file: fix setting of file time-stamp into the past.
@ 2009-12-11 16:12 Sergei Organov
       [not found] ` <handler.5181.B.126054797316423.ack@emacsbugs.donarmstrong.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Sergei Organov @ 2009-12-11 16:12 UTC (permalink / raw)
  To: bug-gnu-emacs

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)






^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#5181: [PATCH] vc-revert-file: fix setting of file time-stamp into the past.
       [not found] ` <handler.5181.B.126054797316423.ack@emacsbugs.donarmstrong.com>
@ 2009-12-11 17:21   ` osv
  2011-07-13  7:57     ` Glenn Morris
  0 siblings, 1 reply; 3+ messages in thread
From: osv @ 2009-12-11 17:21 UTC (permalink / raw)
  To: 5181

This bug was supposed to be a patch to bug#3298 instead, -- sorry for
sending it to a wrong address.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#5181: [PATCH] vc-revert-file: fix setting of file time-stamp into the past.
  2009-12-11 17:21   ` osv
@ 2011-07-13  7:57     ` Glenn Morris
  0 siblings, 0 replies; 3+ messages in thread
From: Glenn Morris @ 2011-07-13  7:57 UTC (permalink / raw)
  To: 5181-done

Version: 24.1

Thank you; applied.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-07-13  7:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-11 16:12 bug#5181: [PATCH] vc-revert-file: fix setting of file time-stamp into the past Sergei Organov
     [not found] ` <handler.5181.B.126054797316423.ack@emacsbugs.donarmstrong.com>
2009-12-11 17:21   ` osv
2011-07-13  7:57     ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).