From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: mh-e/mh-loaddefs.el removed from CVS Date: Tue, 18 Oct 2005 10:27:42 -0400 Message-ID: References: <87vf02s821.fsf@olgas.newt.com> <87mzles59q.fsf@olgas.newt.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1129645850 25448 80.91.229.2 (18 Oct 2005 14:30:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Oct 2005 14:30:50 +0000 (UTC) Cc: info-cvs@nongnu.org, Bill Wohler , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 18 16:30:48 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ERsSh-0008Hl-Oa for ged-emacs-devel@m.gmane.org; Tue, 18 Oct 2005 16:29:08 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ERsSh-0005gy-7T for ged-emacs-devel@m.gmane.org; Tue, 18 Oct 2005 10:29:07 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ERsRS-0004o0-LK for emacs-devel@gnu.org; Tue, 18 Oct 2005 10:27:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ERsRR-0004nM-PV for emacs-devel@gnu.org; Tue, 18 Oct 2005 10:27:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ERsRR-0004nD-G6 for emacs-devel@gnu.org; Tue, 18 Oct 2005 10:27:49 -0400 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.34) id 1ERsRP-0008Vz-Sm; Tue, 18 Oct 2005 10:27:48 -0400 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id C94162CF5D8; Tue, 18 Oct 2005 10:27:46 -0400 (EDT) Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id D7C154AC00A; Tue, 18 Oct 2005 10:27:42 -0400 (EDT) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id BDB10E6C1B; Tue, 18 Oct 2005 10:27:42 -0400 (EDT) Original-To: Jason Rumney In-Reply-To: (Jason Rumney's message of "Mon, 17 Oct 2005 22:23:04 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-4.85, requis 5, autolearn=not spam, AWL 0.05, BAYES_00 -4.90) X-MailScanner-From: monnier@iro.umontreal.ca 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: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:44262 Archived-At: > I'm not sure how important it is to be able to start from a clean CVS > tree without checking it out fresh. For some people, checking out the whole CVS tree takes a long time. For subversions.gnu.org it also adds unnecessary load. Admittedly, this is not specific to Emacs, and arguably CVS should come with a tool to delete non-CVS-managed files to revert to the "fresh checkout" state. I use a littel Perl script `cvsclean' to do that. Stefan #!/usr/bin/perl sub cvsclean { my($path) = @_; my(%files) = (); my(@subdirs); print STDOUT "Cleaning $path\n"; opendir (DIR, "$path/") || die "No directory $path"; open (ENTRIES, "$path/CVS/Entries") || die "No $path/CVS/Entries file"; while () { if (m[^D/([^/]+)]) { push (@subdirs, "$path/$1"); } elsif (m[^/([^/]+)/[^/-]]) { $files{$1} = "managed"; } } foreach $entry (readdir(DIR)) { if (!exists ($files{$entry})) { $entry = "$path/$entry"; if (-f $entry) { print STDOUT "unlink $entry\n"; unlink $entry; } } } foreach $subdir (@subdirs) { &cvsclean ($subdir); } } &cvsclean (".");