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-git bug with top-level repositories Date: Tue, 19 Aug 2008 09:56:12 -0700 Message-ID: <200808191656.m7JGuC4t025044@sallyv1.ics.uci.edu> References: <200808181433.m7IEX8U3028640@sallyv1.ics.uci.edu> <200808181639.m7IGd1kb005968@sallyv1.ics.uci.edu> <200808182031.m7IKVbR7001754@sallyv1.ics.uci.edu> <87bpzpxlir.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1219165210 2856 80.91.229.12 (19 Aug 2008 17:00:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 Aug 2008 17:00:10 +0000 (UTC) Cc: ams@gnu.org, Claus , Emacs Devel To: Paul R Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 19 19:01:02 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 1KVUYr-0006cl-6d for ged-emacs-devel@m.gmane.org; Tue, 19 Aug 2008 19:00:01 +0200 Original-Received: from localhost ([127.0.0.1]:40610 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVUXu-0001T8-0s for ged-emacs-devel@m.gmane.org; Tue, 19 Aug 2008 12:59:02 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KVUXX-0001K1-IF for emacs-devel@gnu.org; Tue, 19 Aug 2008 12:58:39 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KVUXU-0001Gy-S0 for emacs-devel@gnu.org; Tue, 19 Aug 2008 12:58:39 -0400 Original-Received: from [199.232.76.173] (port=46273 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KVUXU-0001Gm-Ky for emacs-devel@gnu.org; Tue, 19 Aug 2008 12:58:36 -0400 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]:40144) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1KVUXJ-0004lx-VZ; Tue, 19 Aug 2008 12:58:26 -0400 X-ICS-MailScanner-Watermark: 1219769773.95683@QKn/ZGfs+oqxzsP5PYkHXw 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 m7JGuC4t025044; Tue, 19 Aug 2008 09:56:12 -0700 (PDT) In-Reply-To: <87bpzpxlir.fsf@gmail.com> (Paul R.'s message of "Tue, 19 Aug 2008 14:00:12 +0200") Original-Lines: 18 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) 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:102673 Archived-At: Paul R writes: > On Tue, 19 Aug 2008 13:01:54 +0200, Claus said: > Claus> I'm not yet sure if this is a bug or a feature and will perhaps > Claus> patch the code for myself once I've found a better solution (or > Claus> understand why checking the owner would make sense - on Windows > Claus> anyway). > > As an other optimisation, can't we let the VCS itself decide whether > a file is under control or not ? I don't use git, but I guess there is > some way to check it. In mercurial for example, 'hg root' returns the > root of the working directory if it exists, fails otherwise. > Sorry if it has already been discussed. It intentionally not done that way because, it would be too slow. The function in question is run every time a file is opened, and the VC systems are tried in the order they appear in `vc-handled-backends' until one matches...