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: vc-revert broken for Subversion files Date: Wed, 25 Jul 2007 15:49:41 -0400 Message-ID: References: <18083.30192.743099.875105@rgrjr.dyndns.org> <200707221859.l6MIxbA9014188@oogie-boogie.ics.uci.edu> <87d4ykt8eh.fsf@ambire.localdomain> <87k5sq51lc.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1185392995 10477 80.91.229.12 (25 Jul 2007 19:49:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 Jul 2007 19:49:55 +0000 (UTC) Cc: rogers-emacs@rgrjr.dyndns.org, Thien-Thi Nguyen , emacs-devel@gnu.org To: rms@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 25 21:49:53 2007 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 1IDmrm-0002Iu-7d for ged-emacs-devel@m.gmane.org; Wed, 25 Jul 2007 21:49:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDmrl-0006Bo-QN for ged-emacs-devel@m.gmane.org; Wed, 25 Jul 2007 15:49:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IDmrh-0006Ao-Kw for emacs-devel@gnu.org; Wed, 25 Jul 2007 15:49:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IDmrg-00069v-5v for emacs-devel@gnu.org; Wed, 25 Jul 2007 15:49:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IDmrf-00069r-VC for emacs-devel@gnu.org; Wed, 25 Jul 2007 15:49:43 -0400 Original-Received: from tomts43.bellnexxia.net ([209.226.175.110] helo=tomts43-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IDmre-00037h-OL; Wed, 25 Jul 2007 15:49:42 -0400 Original-Received: from pastel.home ([70.53.195.145]) by tomts43-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070725194941.QXVT26794.tomts43-srv.bellnexxia.net@pastel.home>; Wed, 25 Jul 2007 15:49:41 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 65BC07FF0; Wed, 25 Jul 2007 15:49:41 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Tue\, 24 Jul 2007 12\:45\:39 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:75530 Archived-At: > when applied to many files, i can imagine two equally valid policies: > (a) if any file of the list is stay-local-p, enable optimizations. > (b) if all files of the list are stay-local-p, enable optimizations. stay-local-p is used to determine not whether to use some optimizations but whether to use some heuristic rather than the real thing. I.e. (vc-stay-local-p FILE) should be non-nil if FILE's repository is on a far away server, i.e. if querying the status of FILE will take a long time. This is the used to avoid querying the server when it's not absolutely needed, and also triggers the use of async operations where supported. So I think (a) is right, because if any of the files are on a distant repository, the resulting command will take a long time, even if all the other files's repositories are nearby. Stefan