unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* New PCVS command: d y -> diff-yesterday
@ 2004-06-07 14:46 Kim F. Storm
  2004-06-08 13:31 ` Robert J. Chassell
  2004-06-27 18:23 ` d r -> diff-repository (was: New PCVS command: d y -> diff-yesterday) Juri Linkov
  0 siblings, 2 replies; 6+ messages in thread
From: Kim F. Storm @ 2004-06-07 14:46 UTC (permalink / raw)



It happens (quite often) that I would like to see what changes
the latest cvs-update installed.  

Of course, I could do cvs-examine first, but once I've done
cvs-update, it's too late.


Here's a small change which adds a "d y" to diff with yesterday's
version of the file.  This isn't exactly equivalent of "installed by
latest cvs-update", but for me, it is good enough in practice:

WDYT?

Index: lisp/pcvs.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/pcvs.el,v
retrieving revision 1.69
diff -u -r1.69 pcvs.el
--- lisp/pcvs.el	19 May 2004 18:55:51 -0000	1.69
+++ lisp/pcvs.el	7 Jun 2004 14:41:15 -0000
@@ -1565,6 +1565,12 @@
   (interactive (list (cvs-flags-query 'cvs-diff-flags "cvs diff flags")))
   (cvs-mode-diff-1 (cons "-rHEAD" flags)))
 
+(defun-cvs-mode (cvs-mode-diff-yesterday . SIMPLE) (flags)
+  "Diff the selected files against yesterday's head of the current branch.
+See ``cvs-mode-diff'' for more info."
+  (interactive (list (cvs-flags-query 'cvs-diff-flags "cvs diff flags")))
+  (cvs-mode-diff-1 (cons "-Dyesterday" flags)))
+
 (defun-cvs-mode (cvs-mode-diff-vendor . SIMPLE) (flags)
   "Diff the selected files against the head of the vendor branch.
 See ``cvs-mode-diff'' for more info."


Index: lisp/pcvs-defs.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/pcvs-defs.el,v
retrieving revision 1.25
diff -u -r1.25 pcvs-defs.el
--- lisp/pcvs-defs.el	11 Feb 2004 20:01:12 -0000	1.25
+++ lisp/pcvs-defs.el	7 Jun 2004 14:41:36 -0000
@@ -305,6 +305,7 @@
     ("d" "diff" .	cvs-mode-diff)
     ("b" "backup" .	cvs-mode-diff-backup)
     ("h" "head" .	cvs-mode-diff-head)
+    ("y" "yesterday" .	cvs-mode-diff-yesterday)
     ("v" "vendor" .	cvs-mode-diff-vendor))
   "Keymap for diff-related operations in `cvs-mode'."
   :name "Diff")

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

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

end of thread, other threads:[~2004-07-12 13:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-07 14:46 New PCVS command: d y -> diff-yesterday Kim F. Storm
2004-06-08 13:31 ` Robert J. Chassell
2004-06-27 18:23 ` d r -> diff-repository (was: New PCVS command: d y -> diff-yesterday) Juri Linkov
2004-07-12  9:36   ` Kim F. Storm
2004-07-12 12:27     ` d r -> diff-repository Juri Linkov
2004-07-12 13:02       ` Kim F. Storm

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).