From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Megyei Newsgroups: gmane.emacs.devel Subject: Re: vc-git bug with top-level repositories Date: Thu, 28 Aug 2008 21:19:08 +0200 Message-ID: <1219951148.9130.32.camel@surlej> References: <200808181433.m7IEX8U3028640@sallyv1.ics.uci.edu> <200808181639.m7IGd1kb005968@sallyv1.ics.uci.edu> <200808182031.m7IKVbR7001754@sallyv1.ics.uci.edu> <1219912261.8925.63.camel@ubuntu804desktop.localdomain> Reply-To: mathias@mnet-mail.de NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219951191 30003 80.91.229.12 (28 Aug 2008 19:19:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Aug 2008 19:19:51 +0000 (UTC) Cc: claus.klingberg@gmail.com, eliz@gnu.org, dann@ics.uci.edu, ams@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 28 21:20:44 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 1KYn2s-0003GA-VW for ged-emacs-devel@m.gmane.org; Thu, 28 Aug 2008 21:20:39 +0200 Original-Received: from localhost ([127.0.0.1]:35508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYn1t-0001z1-JA for ged-emacs-devel@m.gmane.org; Thu, 28 Aug 2008 15:19:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KYn1q-0001yw-Bx for emacs-devel@gnu.org; Thu, 28 Aug 2008 15:19:34 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KYn1n-0001yY-V0 for emacs-devel@gnu.org; Thu, 28 Aug 2008 15:19:33 -0400 Original-Received: from [199.232.76.173] (port=45310 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYn1n-0001yU-PO for emacs-devel@gnu.org; Thu, 28 Aug 2008 15:19:31 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]:57262) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KYn1Z-0006ry-OQ; Thu, 28 Aug 2008 15:19:18 -0400 Original-Received: from mail01.m-online.net (mail.m-online.net [192.168.3.149]) by mail-out.m-online.net (Postfix) with ESMTP id A5A801C08EB9; Thu, 28 Aug 2008 21:19:10 +0200 (CEST) Original-Received: from localhost (unknown [192.168.1.157]) by mail.m-online.net (Postfix) with ESMTP id 90F999001D; Thu, 28 Aug 2008 21:19:10 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from localhost ([192.168.3.149]) by localhost (scanner1.m-online.net [192.168.1.157]) (amavisd-new, port 10024) with ESMTP id I-rP1xn2vC3V; Thu, 28 Aug 2008 21:19:08 +0200 (CEST) Original-Received: from [192.168.178.21] (ppp-88-217-93-218.dynamic.mnet-online.de [88.217.93.218]) by mail.mnet-online.de (Postfix) with ESMTP; Thu, 28 Aug 2008 21:19:08 +0200 (CEST) In-Reply-To: X-Mailer: Evolution 2.22.3.1 X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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:103084 Archived-At: [Sorry, I forgot to CC emacs-devel in the previous mail] On Thu, 2008-08-28 at 11:52 -0400, Stefan Monnier wrote: > >> That explains how you worked around VC's limitation, but I'd be > >> interested to hear about how you ended up in a state where you bumped > >> into VC's limitation. I.e. how come your /foo/bar/ is owned by > >> a different user than /foo/ even though they're both part of the same > >> Git tree? > > > I'm not the OP but this will be the case in the workflow I'm > > currently working on. > > Two users will work in the same Git worktree. > > Care to explain why it's done this way? We use this workflow in the layout generation process within the ASIC development. Layout generation takes long time, often 3 or more month. Two (or more) people are working together in the same tree on the same database. We have worked this way for years without any VCS. Now we introduce Git for the layout generation process too. We will put the source code (scripts, tool setup files, "design constraints", etc) under version control. > > User A creates the worktree /foo and works in the directory /foo/adir. > > User B works in the directory /foo/bdir. > > Both have umask 0002. > > I think VC will still work fine as long as the users don't create new > directories. But admittedly, it's brittle. The users will create new directories, e.g. to try a different approach with another set of scripts and alternative constraints. IIUC the problem is, that Emacs cannot detect reliably which VCS is being used. Couldn't we tell Emacs by setting a variable which VCS we are using? Because we don't plan to use any other VCS than Git I could add the necessary code to the company wide site-start.el file. I could even set a variable with the path to the Git repository. Mathias