From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#993: 23.0.60; vc-find-root heuristic unreliable on Windows with Cygwin Date: Wed, 17 Sep 2008 21:21:18 -0400 Message-ID: References: <87y71qy1fr.fsf@offby1.atm01.sea.blarg.net> Reply-To: Stefan Monnier , 993@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221702472 12889 80.91.229.12 (18 Sep 2008 01:47:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Sep 2008 01:47:52 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, 993@emacsbugs.donarmstrong.com To: Eric Hanchrow Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 18 03:48:49 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Kg8dU-00076X-Hr for geb-bug-gnu-emacs@m.gmane.org; Thu, 18 Sep 2008 03:48:48 +0200 Original-Received: from localhost ([127.0.0.1]:33741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kg8cT-00023v-3X for geb-bug-gnu-emacs@m.gmane.org; Wed, 17 Sep 2008 21:47:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kg8cN-00021q-UB for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2008 21:47:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kg8cM-00020L-M8 for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2008 21:47:39 -0400 Original-Received: from [199.232.76.173] (port=54778 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kg8cM-0001zt-F6 for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2008 21:47:38 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:53702) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kg8cL-0008Nj-SM for bug-gnu-emacs@gnu.org; Wed, 17 Sep 2008 21:47:38 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8I1lZod003597; Wed, 17 Sep 2008 18:47:35 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m8I1U253031453; Wed, 17 Sep 2008 18:30:02 -0700 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 18 Sep 2008 01:30:02 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 993 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122170088929786 (code B ref -1); Thu, 18 Sep 2008 01:30:02 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 18 Sep 2008 01:21:29 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m8I1LPBV029709 for ; Wed, 17 Sep 2008 18:21:26 -0700 Original-Received: from mx10.gnu.org ([199.232.76.166]:50715) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1Kg8B5-0007Fa-Tg for emacs-pretest-bug@gnu.org; Wed, 17 Sep 2008 21:19:27 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Kg8Cv-0004Se-GX for emacs-pretest-bug@gnu.org; Wed, 17 Sep 2008 21:21:24 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182]:57106 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kg8Cv-0004SI-40 for emacs-pretest-bug@gnu.org; Wed, 17 Sep 2008 21:21:21 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AiQFABxK0UhMCrQ4/2dsb2JhbACBZLg0gWeBAw X-IronPort-AV: E=Sophos;i="4.32,418,1217822400"; d="scan'208";a="27012392" Original-Received: from 76-10-180-56.dsl.teksavvy.com (HELO ceviche.home) ([76.10.180.56]) by ironport2-out.teksavvy.com with ESMTP; 17 Sep 2008 21:21:18 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 28D60B40B1; Wed, 17 Sep 2008 21:21:18 -0400 (EDT) In-Reply-To: <87y71qy1fr.fsf@offby1.atm01.sea.blarg.net> (Eric Hanchrow's message of "Wed, 17 Sep 2008 13:14:48 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Wed, 17 Sep 2008 21:47:39 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:20601 gmane.emacs.pretest.bugs:23063 Archived-At: > Some investigation revealed that the file I visited was owned by > "Administrator", whereas the ".git" directory was owned by "erich". The owner of the .git directory is irrelevant, IIUC. What matter is the owner of the directory in which is the .git subdirectory. > this happens rather a lot when I use Cygwin). Anyway, the code in > vc-find-root explicitly stops looking for a .git directory once it's > determined that some parent of the file in question has a different > owner. This heuristic probably works fine on every other platform, but > perhaps it should be disabled on Windows, since the situation it's > trying to prevent -- namely, "looking in things like /net and /afs" -- > is unlikely to occur on that platform anyway. Actually, some of the problems that the owner-heuristic tries to address are major slowdowns under w32 because of /// samba shares (it's never been quite clear from where exactly does the slowdown come, tho). Stefan