Received: from spf3.us4.outblaze.com (spf3.us4.outblaze.com [205.158.62.25]) by sdf.lonestar.org (8.13.1/8.12.10) with ESMTP id j13GFZkK016635 for ; Thu, 3 Feb 2005 16:15:38 GMT Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by spf3.us4.outblaze.com (Postfix) with ESMTP id 1F97153815 for ; Thu, 3 Feb 2005 16:16:19 +0000 (GMT) Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Cwjr0-00083d-9k for migo@homemail.com; Thu, 03 Feb 2005 11:29:14 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1CwjpW-0007hj-GQ for gnu-arch-users@gnu.org; Thu, 03 Feb 2005 11:27:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1CwjpU-0007gV-1G for gnu-arch-users@gnu.org; Thu, 03 Feb 2005 11:27:40 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1CwjpT-0007eZ-0e for gnu-arch-users@gnu.org; Thu, 03 Feb 2005 11:27:39 -0500 Received: from [128.255.17.47] (helo=server07.icaen.uiowa.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CwjZS-00021D-9n for gnu-arch-users@gnu.org; Thu, 03 Feb 2005 11:11:06 -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 j13GB5nF025130 for ; (envelope-from ) Thu, 3 Feb 2005 10:11:05 -0600 (CST) Received: from [192.168.1.103] (71-32-74-20.cdrr.qwest.net [71.32.74.20]) (authenticated user=jfmeinel) by server11.icaen.uiowa.edu (8.13.2/smtp-serv-1.7) with ESMTP id j13GB2la012160 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256) for ; (envelope-from ) Thu, 3 Feb 2005 10:11:04 -0600 (CST) Message-ID: <42024D16.3050303@arbash-meinel.com> Date: Thu, 03 Feb 2005 10:11:02 -0600 From: John Arbash Meinel User-Agent: Mozilla Thunderbird 1.0 (Macintosh/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gnu Arch Users Subject: Re: [Gnu-arch-users] mirroring concepts/practice help References: <5a7d482af20133a0b03c35bd22319f92@desertsol.com> <420132B1.9040000@panoramicfeedback.com> <1c92b5e634b0fe98c1d9f2d36adfc8ab@desertsol.com> <2f4797b8f3c8328faac3df0af6406263@desertsol.com> <96108223673103d9feba0be06282e9b7@desertsol.com> In-Reply-To: <96108223673103d9feba0be06282e9b7@desertsol.com> 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 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="===============0121401887==" 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: 5397 Lines: 144 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============0121401887== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig94DECF0A37B9AA0721B58227" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig94DECF0A37B9AA0721B58227 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Kevin Geiss wrote: > > On Feb 3, 2005, at 7:32 AM, Kevin Geiss wrote: > >> wait, I'm running into a problem still. I'm on my laptop, I want to >> 'pull' from my archive at desertsol.com to a local mirror on my laptop: >> >> 7:14AM0quasar>tla archive-mirror >> kevin@desertsol.com--2005-home-SOURCE kevin@desertsol.com--2005-home >> arch_archive_connect: attempt to connect to wrong mirror >> archive: kevin@desertsol.com--2005-home >> wanted mirror of: kevin@desertsol.com--2005-home >> got mirror of: kevin@desertsol.com--2005-home-SOURCE >> 7:23AM1quasar>tla archives >> kevin@desertsol.com--2005-home >> /Users/kevin/arch/2005-home-MIRROR >> kevin@desertsol.com--2005-home-SOURCE >> sftp://desertsol.com/data/archives/2005-home >> >> I'm sure if I temporarily registered >> sftp://desertsol.com/data/archives/2005-home with its true name >> (kevin@desertsol.com--2005-home) and the local mirror with the name >> kevin@desertsol.com--2005-home-MIRROR it would work, but then I would >> need to un-register them, and register the local mirror with the name >> kevin@desertsol.com--2005-home to be able to do anything with it. I'd >> rather register them once. what am I missing now? > > > I checked the =meta-info of my local mirror. the 'name' and 'mirror' > files both contain 'kevin@desertsol.com--2005-home-SOURCE'. > > so I re-'make archive'ed the mirror, so that it has > 'kevin@desertsol.com--2005-home' in the name and mirror files. to do > that, I registered the real archive with the > 'kevin@desertsol.com--2005-home' name, rather than the -SOURCE name. > > after the initial archive-mirror command finished, I re-registered the > two archives using the -SOURCE name for the 'real' archive and the > normal name for the mirror. then archive-mirror was able to mirror > from the -SOURCE to the local mirror. > > so I guess the important part is what is stored in the 'name' and > 'mirror' meta-info files. the easiest way to set those correctly is to > use temporary names when first creating the mirror, then switching to > names you plan to use after that. Actually, =meta-info/name should always contain the "real" name. It is a mirror, but that is the archive it is a mirror of. I'm not really sure what should go into =meta-info/mirror. I think it is actually not ever read. Just having the file means that the archive is treated as a mirror (no committing). What *is* important is how you have registered the archives. There are two possibilities for archive-mirror $realpath => path to real $real => archive name of real # This is used when you want a remote mirror of your local archive # It is a mirror that you push your changes to, but all of the normal commands # (changes, revisions, etc) will use the archive in $realpath tla register-archive $realpath # same as tla register-archive $real $realpath, the real archive is registered with it's correct name tla make-archive --mirror $real $mirrorpath # Now mirror has been registered as $real-MIRROR tla archive-mirror $real # Now if you want to register someone else's archive, and create a local mirror of it # This is called a pull mirror, since you pull the other archives patches locally. # This is designed so that changes, revisions, etc all look at the mirror rather than # the original. You still cannot commit to the mirror, though. tla register-archive $real-SOURCE $realpath tla make-archive --mirror-from $real-SOURCE $mirrorpath # Now ~/.arch-params/=locations has $mirrorpath as the location for $real tla archive-mirror $real Basically tla archive-mirror looks at your local registry to figure out whether it is push mirroring or pull mirroring. Since you are trying to create a local mirror of a remote repository so that you can work offline, you want a pull-mirror. So you need to do the second steps. You really should *never* have to change anything in =meta-info. In fact, it is generally bad form to touch anything in the archive manually. You can get away with a lot, but you can also potentially corrupt your archive. John =:-> --------------enig94DECF0A37B9AA0721B58227 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 iD8DBQFCAk0WJdeBCYSNAAMRAjpuAKCUd7QOjIqB1DFlJjCAqKUIJHSaEgCeJKdk bfvtoX1mTYJDpWr7xqNpiFU= =1N8n -----END PGP SIGNATURE----- --------------enig94DECF0A37B9AA0721B58227-- --===============0121401887== 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/ --===============0121401887==--