From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai Grossjohann Newsgroups: gmane.emacs.help Subject: Re: CVS questions: multi-file commits, and branch reminders Date: Fri, 24 Dec 2004 00:03:46 +0100 Message-ID: <86k6r8pqgd.fsf@ketchup.de.uu.net> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1103843232 20965 80.91.229.6 (23 Dec 2004 23:07:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 23 Dec 2004 23:07:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 24 00:07:07 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Chc31-0001rW-00 for ; Fri, 24 Dec 2004 00:07:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1ChcDd-0004sn-Fl for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Dec 2004 18:18:05 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1ChcDB-0004kb-U3 for help-gnu-emacs@gnu.org; Thu, 23 Dec 2004 18:17:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1ChcDA-0004jr-FH for help-gnu-emacs@gnu.org; Thu, 23 Dec 2004 18:17:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1ChcDA-0004jP-1r for help-gnu-emacs@gnu.org; Thu, 23 Dec 2004 18:17:36 -0500 Original-Received: from [80.91.229.2] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Chc0J-0001Lg-NR for help-gnu-emacs@gnu.org; Thu, 23 Dec 2004 18:04:19 -0500 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1Chc0H-0007Uj-00 for ; Fri, 24 Dec 2004 00:04:17 +0100 Original-Received: from p3ee241c6.dip.t-dialin.net ([62.226.65.198]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Dec 2004 00:04:17 +0100 Original-Received: from kai by p3ee241c6.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Dec 2004 00:04:17 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 34 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: p3ee241c6.dip.t-dialin.net User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:Sgb1YqF0PJK3iTGda7BbdkLANhs= X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:22953 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:22953 Roy Smith writes: > Is there a way in CVS mode to commit multiple files at once? The > behavior I'm after is what you get from the command line when you type > "cvs commit": all the files in the current directory are examined for > diffs and all of them that have changed are committed at once, with a > single log message. I think you might like M-x cvs-update RET or M-x cvs-examine RET or M-x cvs-quickdir RET. That displays a buffer showing all files in your working directory that are changed. Marking some of them and hitting c (or C) will commit them all in one go. If you hit c or C on a directory, all files below that directory will be affected. So to commit all files, hit c or C on the "." line. c just commits normally, whereas C prepopulates the commit message with stuff from the ChangeLog file. I love that. Edit code, hit C-x 4 a in some spot I've changed, compose a ChangeLog entry for that spot, then, when done, use the C command from PCL-CVS (that's the package implementing cvs-update and cvs-examine). But you can also do C-x v d to get a listing of files, then mark some of them and issue v v to commit them. > The other nice thing about committing from the command line is the > template log message includes the branch you're committing on. This > is a nice reminder that helps avoid ugly mistakes when you're > working with several branches at once. Is there a way to get emacs > to do that? Hm. Not sure. Never worried about template commit messages. Hm. Anyone? Kai