Return-Path: Delivered-To: apmail-maven-continuum-users-archive@www.apache.org Received: (qmail 61305 invoked from network); 13 Sep 2006 09:00:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Sep 2006 09:00:11 -0000 Received: (qmail 38322 invoked by uid 500); 13 Sep 2006 09:00:10 -0000 Delivered-To: apmail-maven-continuum-users-archive@maven.apache.org Received: (qmail 38301 invoked by uid 500); 13 Sep 2006 09:00:09 -0000 Mailing-List: contact continuum-users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: continuum-users@maven.apache.org Delivered-To: mailing list continuum-users@maven.apache.org Received: (qmail 38284 invoked by uid 99); 13 Sep 2006 09:00:09 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Sep 2006 02:00:09 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=lists@nabble.com; spf=pass X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=REMOVE_PAGE Received-SPF: pass (idunn.apache.osuosl.org: domain nabble.com designates 72.21.53.35 as permitted sender) Received: from ([72.21.53.35:51605] helo=talk.nabble.com) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 6E/61-08607-4A8C7054 for ; Wed, 13 Sep 2006 02:00:20 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GNQbC-0003O9-D0 for continuum-users@maven.apache.org; Wed, 13 Sep 2006 02:00:02 -0700 Message-ID: <6281593.post@talk.nabble.com> Date: Wed, 13 Sep 2006 02:00:02 -0700 (PDT) From: ArneD To: continuum-users@maven.apache.org Subject: Re: Update over scm-local does not delete files removed from source dir In-Reply-To: <4506DAD2.10006@venisse.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: public@degenring.de References: <6261871.post@talk.nabble.com> <4506B01D.2060808@venisse.net> <6267099.post@talk.nabble.com> <4506DAD2.10006@venisse.net> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Emmanuel Venisse wrote: > > >> thanks a lot for your answer. A ClearCase dynamic view looks like a >> normal >> filesystem, so I think scm-local in principle is a fine solution. I think >> there wouldn't be much what a dedicated dynamic-view support in the >> Clearcase SCM provider could add. > > Maybe it looks like a normal filesystem, but I think the clearcase server > know if files are deleted > and update your local copy, right? > ClearCase of course has the information. But the problem is that a ClearCase dynamic view resides on a virtual network share, e.g. \\view\some_view. You can map it to a drive letter under windows, e.g. Z:, but I don't see a way to define it in Continuum's working directory. So the files have to be copied from the dynamic view to the working directory - and that's what scm-local is doing. >> >> Couldn't the scm-local adapter consider all files that are in the >> checkout >> dir but not in the source dir as deleted? This should be easy to >> implement >> and do the job. > > We can't, because some users (or the build) add some files in the checkout > directory like the target > directory and they don't want to remove them at each build. > That's true. Maybe we could enhance scm-local to keep its own metadata? In particular, scm-local could maintain a simple file, say .maven-scm-local, that contains as plain text the list of files in the source directory, as seen during the last checkout or update operation: - During checkout, the file .maven-scm-local is created in the checkout base directory. Its just a plain text file containing the list of files that have been checked out. - The update command looks for the file. If it is there, it compares the contents of that file to the current source directory contents (including subdirs). All files that are in .maven-scm-local but are no longer in the source dir, have been deleted in the source dir. The update command therefore removes them from the checkout dir. - If for whatever reason .maven-scm-local is not there, the update command won't delete any files. That way, we're backwards compatible. - After completing the update process, the update command rewrites the .maven-scm-local metadata file. - Even the changelog command can interpret .maven-scm-local - For add and checkin commands, I don't think that changes are needed. What do you think? Regards, Arne -- View this message in context: http://www.nabble.com/Update-over-scm-local-does-not-delete-files-removed-from-source-dir-tf2257460.html#a6281593 Sent from the Continuum - Users forum at Nabble.com.