From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: [patch] vc-find-root with invert Date: Tue, 22 Jul 2008 01:02:01 +0200 Message-ID: <853am2aljq.fsf@lola.goethe.zz> References: <486E5CE0.5090004@justinbogner.com> <486E668E.2050600@justinbogner.com> <20080705072126.GA936@tomas> <4884B8FC.9040301@justinbogner.com> <488500C2.8060001@justinbogner.com> <85ej5maodw.fsf@lola.goethe.zz> <48850C7A.6050800@justinbogner.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216681343 27243 80.91.229.12 (21 Jul 2008 23:02:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Jul 2008 23:02:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: Justin Bogner Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 22 01:03:12 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 1KL4PM-00009w-G8 for ged-emacs-devel@m.gmane.org; Tue, 22 Jul 2008 01:03:08 +0200 Original-Received: from localhost ([127.0.0.1]:34463 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KL4OT-0004KV-Fv for ged-emacs-devel@m.gmane.org; Mon, 21 Jul 2008 19:02:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KL4OO-0004I9-MD for emacs-devel@gnu.org; Mon, 21 Jul 2008 19:02:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KL4ON-0004Gw-5M for emacs-devel@gnu.org; Mon, 21 Jul 2008 19:02:08 -0400 Original-Received: from [199.232.76.173] (port=41079 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KL4OM-0004Gq-UM for emacs-devel@gnu.org; Mon, 21 Jul 2008 19:02:06 -0400 Original-Received: from mail-in-04.arcor-online.net ([151.189.21.44]:46361) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KL4OM-0000Uq-Dn for emacs-devel@gnu.org; Mon, 21 Jul 2008 19:02:06 -0400 Original-Received: from mail-in-12-z2.arcor-online.net (mail-in-12-z2.arcor-online.net [151.189.8.29]) by mail-in-04.arcor-online.net (Postfix) with ESMTP id 8505B17F473; Tue, 22 Jul 2008 01:02:04 +0200 (CEST) Original-Received: from mail-in-17.arcor-online.net (mail-in-17.arcor-online.net [151.189.21.57]) by mail-in-12-z2.arcor-online.net (Postfix) with ESMTP id 718902793F9; Tue, 22 Jul 2008 01:02:04 +0200 (CEST) Original-Received: from lola.goethe.zz (dslb-084-061-050-208.pools.arcor-ip.net [84.61.50.208]) by mail-in-17.arcor-online.net (Postfix) with ESMTP id 51E392BC9F4; Tue, 22 Jul 2008 01:02:04 +0200 (CEST) Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id D26CF1C1346B; Tue, 22 Jul 2008 01:02:02 +0200 (CEST) In-Reply-To: <48850C7A.6050800@justinbogner.com> (Justin Bogner's message of "Mon, 21 Jul 2008 16:23:54 -0600") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Virus-Scanned: ClamAV 0.93.3/7771/Mon Jul 21 23:09:37 2008 on mail-in-17.arcor-online.net X-Virus-Status: Clean X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 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:101139 Archived-At: Justin Bogner writes: > David Kastrup wrote: >> Justin Bogner writes: >>> However, for the other case, we need traverse upwards until we don't >>> find the directory, returning the last one that does. >> >> Why? CVS or SVN do not do this either. Subdirectories with .svn in >> them are self-contained work directories with associated repository >> location. >> >>> As far as getting rid of invert, we could do that, and the function >>> would then return something more reasonable than it does now, but it >>> wouldn't actually find the root unless you happened to try the root >>> first. >> >> There is no dedicated root in CVS or SVN. You never need to look at >> .. in order to do local operations. You can move your directory out to >> a different location under a different "root" and things will work just >> the same from there. >> >> Which is pretty much the principal reason for every directory having its >> own CVS or .svn subdirectories. >> > > Is this still true if you need to do nonlocal operations? With "local" I meant "local to the current tree location" whether in the work directory or repository, not "local to this computer". > If so then this is indeed a misfeature. The only sort of justification I could imagine is when you are trying to create a patch and/or work with a file set. Then you want to have some sort of common root. However, just walking upwards is not guaranteed to give you such a root: it is perfectly feasible to place some directory under CVS for backup purposes, but have a non-registered subdirectory _also_ under CVS with a completely different repository. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum