Received: from spf5.us4.outblaze.com (spf5.us4.outblaze.com [205.158.62.27]) by sdf.lonestar.org (8.12.10/8.12.10) with ESMTP id iBV4wWTS020834 for ; Fri, 31 Dec 2004 04:58:32 GMT Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by spf5.us4.outblaze.com (Postfix) with ESMTP id 7B36477006 for ; Fri, 31 Dec 2004 04:59:13 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CkF3Z-0006i6-PC for migo@homemail.com; Fri, 31 Dec 2004 00:10:33 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CkF2O-0006S9-5I for gnu-arch-users@gnu.org; Fri, 31 Dec 2004 00:09:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CkF2M-0006RD-4T for gnu-arch-users@gnu.org; Fri, 31 Dec 2004 00:09:18 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CkF2L-0006R3-Ub for gnu-arch-users@gnu.org; Fri, 31 Dec 2004 00:09:17 -0500 Received: from [129.255.60.186] (helo=ct.radiology.uiowa.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CkEqw-0005jo-Da for gnu-arch-users@gnu.org; Thu, 30 Dec 2004 23:57:30 -0500 Received: from [192.168.1.11] (12-217-241-0.client.mchsi.com [12.217.241.0]) by ct.radiology.uiowa.edu (8.11.6/8.11.6) with ESMTP id iBV4vR326105; Thu, 30 Dec 2004 22:57:27 -0600 Message-ID: <41D4DCA5.3090204@arbash-meinel.com> Date: Thu, 30 Dec 2004 22:59:17 -0600 From: John A Meinel User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Zenaan Harkness Subject: Re: [Gnu-arch-users] tla archive-setup/init-tree/import References: <1104468209.8958.167.camel@localhost.localdomain> In-Reply-To: <1104468209.8958.167.camel@localhost.localdomain> X-Enigmail-Version: 0.89.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Cc: arch X-BeenThere: gnu-arch-users@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: a discussion list for all things arch-ish List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1447400436==" Sender: gnu-arch-users-bounces+migo=homemail.com@gnu.org Errors-To: gnu-arch-users-bounces+migo=homemail.com@gnu.org Status: RO Content-Length: 3373 Lines: 101 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============1447400436== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigEA1725EABF016A51292801A6" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigEA1725EABF016A51292801A6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Zenaan Harkness wrote: >Why do we have init-tree and import? > >As in, from a user perspective, surely these could happen transparently, >behind the scenes, so that after archive-setup, simply do: > >tla get $version >cd $version ># cp/ edit initial files into tree >tla add $initial_files >tla commit > >??? > >So get will know to do a mkdir and archive-setup, since there's no >base-0 revision, and commit would automatically know to do whatever >import is supposed to do. > >Sorry if this has been discussed before, I've been cramming work lately >and therefore been offlist for a while. > >tia >zenaan > > I think it makes sense to have tla commit do the work of tla import, but I would still want a tla init-tree. To me, 'tla get' says get something out of the repository, and fail if it doesn't exist. 'tla init-tree' (could be shortened to 'tla init'?) says I want to create a new entry. I think the reason for import/commit is that they do different things (commit always commits a changeset, import creates a complete tarball). However, since the only time you use import is on the *first* time, and it doesn't do anything worthwhile any other time (that I know of), I think it would be reasonable to have tla commit check if there is a base-0, and if not, do an 'import'. The one flag I use from import is 'tla import -S' so that it will create the category/branch/version for me if it doesn't exist. I've actually gone back on my earlier stance, and think -S should be the default. Even if there was a typo in my init-tree, there really isn't any way to catch it. (Unless everyone uses tla make-category make-branch make-version, etc. *Does* anyone do that?) I suppose I would be more okay with a 'tla commit --import' for the first commit. Just to make sure that you realize it is going to create new branches if it has to. There is also the idea of making 'tla tag -S' the default, but since you can tag into existing trees, I think it's probably better to leave it the way it is. John =:-> --------------enigEA1725EABF016A51292801A6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (Cygwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFB1NypJdeBCYSNAAMRAp4KAKCJk+TgB8mnHU8YRafAzhh4ueXTrACfUai0 /kAuX/XO8ZicX6LlPae5b6M= =6Asj -----END PGP SIGNATURE----- --------------enigEA1725EABF016A51292801A6-- --===============1447400436== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Gnu-arch-users mailing list Gnu-arch-users@gnu.org http://lists.gnu.org/mailman/listinfo/gnu-arch-users GNU arch home page: http://savannah.gnu.org/projects/gnu-arch/ --===============1447400436==--