From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: d r -> diff-repository (was: New PCVS command: d y -> diff-yesterday) Date: 12 Jul 2004 11:36:40 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <87isdc26pw.fsf_-_@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1089624996 23866 80.91.224.253 (12 Jul 2004 09:36:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 12 Jul 2004 09:36:36 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Jul 12 11:36:31 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BjxEd-0001kl-00 for ; Mon, 12 Jul 2004 11:36:31 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BjxEd-0006cJ-00 for ; Mon, 12 Jul 2004 11:36:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BjxGw-0005TL-JO for emacs-devel@quimby.gnus.org; Mon, 12 Jul 2004 05:38:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BjxGk-0005Sw-Rg for emacs-devel@gnu.org; Mon, 12 Jul 2004 05:38:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BjxGj-0005SV-Fx for emacs-devel@gnu.org; Mon, 12 Jul 2004 05:38:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BjxGj-0005SL-Dj for emacs-devel@gnu.org; Mon, 12 Jul 2004 05:38:41 -0400 Original-Received: from [212.88.64.25] (helo=mail-relay.sonofon.dk) by monty-python.gnu.org with smtp (Exim 4.34) id 1BjxEH-0006So-1f for emacs-devel@gnu.org; Mon, 12 Jul 2004 05:36:09 -0400 Original-Received: (qmail 13719 invoked from network); 12 Jul 2004 09:36:07 -0000 Original-Received: from unknown (HELO kfs-l.imdomain.dk.cua.dk) (213.83.150.2) by 0 with SMTP; 12 Jul 2004 09:36:07 -0000 Original-To: Juri Linkov In-Reply-To: <87isdc26pw.fsf_-_@mail.jurta.org> Original-Lines: 63 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25606 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25606 Juri Linkov writes: > There is another useful command missing in PCVS: to view the changes > anyone has committed to the repository since you last executed > checkout/update/commit. This command is useful to look at the changes > in the repository before doing cvs-update. How is this different from d h (cvs-mode-diff-head) ? > > Index: lisp/pcvs.el > =================================================================== > RCS file: /cvsroot/emacs/emacs/lisp/pcvs.el,v > retrieving revision 1.70 > diff -u -r1.70 pcvs.el > --- lisp/pcvs.el 10 Jun 2004 08:29:32 -0000 1.70 > +++ lisp/pcvs.el 27 Jun 2004 18:26:29 -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-repository . SIMPLE) (flags) > + "Diff the files for changes in the repository since last co/update/commit. > +See ``cvs-mode-diff'' for more info." > + (interactive (list (cvs-flags-query 'cvs-diff-flags "cvs diff flags"))) > + (cvs-mode-diff-1 (cons "-rBASE" (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." > > Index: lisp/pcvs-defs.el > =================================================================== > RCS file: /cvsroot/emacs/emacs/lisp/pcvs-defs.el,v > retrieving revision 1.26 > diff -u -r1.26 pcvs-defs.el > --- lisp/pcvs-defs.el 10 Jun 2004 08:29:12 -0000 1.26 > +++ lisp/pcvs-defs.el 27 Jun 2004 18:27:32 -0000 > @@ -305,6 +305,7 @@ > ("d" "diff" . cvs-mode-diff) > ("b" "backup" . cvs-mode-diff-backup) > ("h" "head" . cvs-mode-diff-head) > + ("r" "repository" . cvs-mode-diff-repository) > ("y" "yesterday" . cvs-mode-diff-yesterday) > ("v" "vendor" . cvs-mode-diff-vendor)) > "Keymap for diff-related operations in `cvs-mode'." > > -- > Juri Linkov > http://www.jurta.org/emacs/ > > > > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-devel > > -- Kim F. Storm http://www.cua.dk