unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Subject: New PCVS command: d y -> diff-yesterday
Date: 07 Jun 2004 16:46:50 +0200	[thread overview]
Message-ID: <m3aczf4e91.fsf@kfs-l.imdomain.dk> (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

             reply	other threads:[~2004-06-07 14:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-07 14:46 Kim F. Storm [this message]
2004-06-08 13:31 ` New PCVS command: d y -> diff-yesterday 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

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3aczf4e91.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    /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 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).