User question : does bzr have an equivalent to "tla archive-mirror"?
John Arbash Meinel
john at arbash-meinel.com
Sun Dec 11 14:13:42 GMT 2005
Erik de Castro Lopo wrote:
> John Arbash Meinel wrote:
>
>
>>Erik de Castro Lopo wrote:
>>
>>
>>> 2) Keep all Bzr projects in a single directory and write a script
>>> which does a "bzr push" for each directory in the Bzr directory.
>>
>>I've already done this last one. It is my "update-mirrors" plugin,
>>available from:
>>
>>http://bzr.arbash-meinel.com/plugins/update-mirrors
>
>
> John,
>
> How do I use this?
>
> Erik
bzr loads any plugins which it can find in bzrlib/plugins/,
~/.bazaar/plugins/, (which can be overridden by BZR_PLUGIN_PATH).
For the above plugin, you can do:
mkdir ~/.bazaar
cd ~/.bazaar
bzr branch http://bzr.arbash-meinel.com/plugins/update-mirrors
That should create a local branch.
At that point you can run "bzr update-mirrors --help" for more information.
But basically, it works by having you supply a root directory to crawl.
So in my case, I use a cron-job which runs:
bzr update-mirrors /srv/bzr/public/mirrors/
Then if I put any new branches underneath mirrors, they will 'pull' from
their parents twice a day.
It wouldn't be very hard to have the update-mirrors script also look for
a push-location, and push those mirrors.
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051211/356b25f3/attachment.pgp
More information about the bazaar
mailing list