From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: vc-status vs pcl-cvs Date: Wed, 04 Jun 2008 10:54:34 -0700 Message-ID: <200806041754.m54HsYjL029738@sallyv1.ics.uci.edu> References: <4845BA20.3070804@gnu.org> <18502.728.743890.14466@kahikatea.snap.net.nz> <18502.12890.517998.506464@kahikatea.snap.net.nz> <200806041601.m54G11P4004695@sallyv1.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1212602172 10509 80.91.229.12 (4 Jun 2008 17:56:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Jun 2008 17:56:12 +0000 (UTC) Cc: Nick Roberts , Sam Steingold , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 04 19:56:51 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K3xE3-0002gf-Bd for ged-emacs-devel@m.gmane.org; Wed, 04 Jun 2008 19:56:43 +0200 Original-Received: from localhost ([127.0.0.1]:47404 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3xDG-0002oS-R9 for ged-emacs-devel@m.gmane.org; Wed, 04 Jun 2008 13:55:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K3xDC-0002mv-2H for emacs-devel@gnu.org; Wed, 04 Jun 2008 13:55:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K3xDA-0002mP-Ld for emacs-devel@gnu.org; Wed, 04 Jun 2008 13:55:49 -0400 Original-Received: from [199.232.76.173] (port=33923 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3xDA-0002mL-C7 for emacs-devel@gnu.org; Wed, 04 Jun 2008 13:55:48 -0400 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]:62468) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1K3xD4-00023A-KU; Wed, 04 Jun 2008 13:55:43 -0400 X-ICS-MailScanner-Watermark: 1213206875.83505@FuujwEgeXjLGf+k0qkIHeA Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m54HsYjL029738; Wed, 4 Jun 2008 10:54:34 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Wed, 04 Jun 2008 13:22:42 -0400") Original-Lines: 36 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.363, required 5, autolearn=disabled, ALL_TRUSTED -1.44, TW_SV 0.08) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) 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:98410 Archived-At: Stefan Monnier writes: > >> > > In that case, do you think [it was] premature to remove vc-directory which > >> > > was better at doing some of the things vc-dir should do? > >> > > >> > AFAIK, it has the same "commit in foreground" and "no way to update the > >> > whole direcrory" problem. VC-dir is missing some features, but which > >> > ones (other than the obvious ones from dired which probably won't be > >> > added to vc-dir anyway) were present in vc-dired? > >> > >> vc-dir always needs the repository (even when vc-stay-local is t), > > > This would need to be implemented in specific backends (only CVS and svn > > care about it). And it's rather easy: in vc-*-dir-status can use > > something like vc-rcs-dir-status. Patches are welcome. > > (IMHO this is not very useful, but if people want it...) > > I disagree. The "stay-local" should be the default. It is tremendously > useful (think of the case where you're not connected to your > repository). The non-stay-local behavior is the one whose usefulness is > debatable (after all, most new VCS don't bother offering a clean > equivalent). So that means you'd want vc-dir to work differently by default than cvs-status? That would be surprising for most users. In the case of being disconnected, vc-dir can only show you the file states, if they are edited or not, you can't do diff/log/annotate/commit etc. That's the reason I think it's not very useful. Now, to implement this stuff vc-cvs-dir-status just needs to be changed to do (if vc-cvs-stay-local-p THE_CODE_FROM-vc-rcs-dir-status THE_CURRENT_CODE) (vc-rcs-dir-status has issues as noted in the comments and in the vc.el:Todo)