Received: from spf1.us4.outblaze.com (spf1.us4.outblaze.com [205.158.62.23]) by sdf.lonestar.org (8.13.1/8.12.10) with ESMTP id j12NV3Ge004989 for ; Wed, 2 Feb 2005 23:31:04 GMT Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by spf1.us4.outblaze.com (Postfix) with ESMTP id 57010298514 for ; Wed, 2 Feb 2005 23:31:45 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CwUAW-00022T-22 for migo@homemail.com; Wed, 02 Feb 2005 18:44:20 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CwU8f-0001Wh-Fa for gnu-arch-users@gnu.org; Wed, 02 Feb 2005 18:42:29 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CwU8Y-0001Tp-F1 for gnu-arch-users@gnu.org; Wed, 02 Feb 2005 18:42:19 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CwU8W-0001Qb-LZ for gnu-arch-users@gnu.org; Wed, 02 Feb 2005 18:42:17 -0500 Received: from [128.255.17.47] (helo=server07.icaen.uiowa.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CwThM-0002mX-2o for gnu-arch-users@gnu.org; Wed, 02 Feb 2005 18:14:12 -0500 Received: from server11.icaen.uiowa.edu (server11.icaen.uiowa.edu [128.255.17.51]) by server07.icaen.uiowa.edu (8.13.2/8.12.9) with ESMTP id j12NEAVa002556; (envelope-from ) Wed, 2 Feb 2005 17:14:10 -0600 (CST) Received: from [192.168.1.101] (65-103-51-60.cdrr.qwest.net [65.103.51.60]) (authenticated user=jfmeinel) by server11.icaen.uiowa.edu (8.13.2/smtp-serv-1.7) with ESMTP id j12NE89m019223 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256); (envelope-from ) Wed, 2 Feb 2005 17:14:09 -0600 (CST) Message-ID: <42015EBC.2000901@arbash-meinel.com> Date: Wed, 02 Feb 2005 17:14:04 -0600 From: John Arbash Meinel User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Robert Anderson , Gnu Arch Users Subject: Re: [Gnu-arch-users] config command idea References: In-Reply-To: X-Enigmail-Version: 0.89.6.0 X-Enigmail-Supports: pgp-inline, pgp-mime X-Virus-Scanned: ClamAV 0.80/682/Mon Jan 24 12:53:43 2005 clamav-milter version 0.80j on clamav.icaen.uiowa.edu X-Virus-Scanned: ClamAV 0.80/685/Wed Jan 26 03:08:24 2005, clamav-milter version 0.75 on clamav.icaen.uiowa.edu X-Virus-Status: Clean X-Virus-Status: Clean Cc: 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="===============0406802382==" 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: 4185 Lines: 131 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============0406802382== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBCC9438F6F03A278456EF62A" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBCC9438F6F03A278456EF62A Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Robert Anderson wrote: >I often have phone/chat/email conversations that go like this: > >Guy: "I'm having problem X with your software that I checked out >of the repository." >Me: "Which configuration did you build?" >Guy: "Which what? Oh, I don't remember. Y, or maybe Z. How do >I check?" > >At which point I usually go over to their office and take over >the keyboard. > >I think there needs to be at the very least a command "Is this >directory consistent with configuration X" which means "for each >directory listed in config X, does the tree-version match that in >the config." This is robust with manual tweaking, unlike leaving >some kind of dropping somewhere when a config is built. > >What you'd really want is "what config(s) is this set of trees >consistent with" but that seems harder. > >Bob > > Well, can you do: tla cat-config --snap $configname | diff $configname - Or I prefer tla cat-config --snap $configname > ,tmp.cfg ; vimdiff $configname ,tmp.cfg Naturally you can insert your preferred diff program. This doesn't handle the case where the projects have been modified. I agree that there could easily be a nicer program/command that lets you inspect the current configuration and compare it to something else. Just something that iterates over the items in a configuration and reports differences, etc. Perhaps something like tla check-config The output could be something like: Dir Config Actual ./src/tla lord@emf.net--2004/tla--devo--1.3 patch-13 ./src/hackerlab lord@emf.net--2004/hackerlab--devo--1.3--patch-12 ... There are differences [there are no differences] if there are differences the command should return nonzero, if no differences it should return 0. My idea for the Actual column is that only the difference from the config should be shown. You could print out the whole string, but that makes it hard to read. There could even be a less verbose mode that leaves out the "Config" column. And an even less verbose that only prints out things that are different. tla check-config --no-config tla check-config --only-changes I also wish that tla had a "tla update-config". Right now I just use the tlatools "tla-update-config" script, which works well enough. John =:-> PS> Has anyone else noticed that if you have a really large config (we have 85 projects), tla build-config can fail after a while because "fork is temporarily unavailable". It seems to happen while it is forking sh (to run gpg) to check signatures. This is with a fresh build-config and nothing in the revlib, so there could easily be thousands of signature checks. Re-running build-config isn't really an option, since it moves existing directories out of the way. Hence at least one need for "tla-update-config". --------------enigBCC9438F6F03A278456EF62A 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.4 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCAV7AJdeBCYSNAAMRApn4AKDMzU7vaWdam6zhwnrRbZyGU4xfAwCfa9Ht Dkse+x94wXBrq1J/fozGbx0= =1vEK -----END PGP SIGNATURE----- --------------enigBCC9438F6F03A278456EF62A-- --===============0406802382== 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/ --===============0406802382==--