User question : does bzr have an equivalent to "tla archive-mirror"?

James Blackwell jblack at merconline.com
Sun Dec 11 11:50:13 GMT 2005


On Sun, Dec 11, 2005 at 01:40:29PM +1100, Erik de Castro Lopo wrote:
> Hi all,
> 
> I'm new to Bzr but I've been using GNU Arch for the last 2+ years.
> 
> I do a lot of work on a laptop and one of the things I liked about
> Arch was "tla archive-mirror" command which allowed me to backup all 
> of my currently working code to my desktop machine. 

As you mention below, you can push on a branch by branch basis.

> For bzr, there currently does not seem to be anything which matches
> this feature. Bzr does not have a local repository but rather consists
> of multiple branches. The "bzr push" command can push a single branch,
> but not all branches on the local machine.

Aye. Its not built in directly right now. However, you can achieve
similiar functionality with the following: 

1. Keep a set of branches in branch-set
2. cd branch-set; for x in *; do pushd $x; bzr push; popd; done

> I brought this up on #bzr and ddaa had a number of suggestions for
> getting close to the Arch functionality. (Hopefully he can correct
> me if I get anything wrong here).
> 
>   0) Keep all the projects under Bzr control in a single directory
>      and rsync. This is suboptimal because unless I am extremely
>      meticulous about keeping the .rsyncignore files up to date, I 
>      end up rsyncing all sorts of junk which I don't need.

You could combine the bzrtools rsync with the option I listed above. ;)

> 
>   1) Keep a separate clean copy of each branch that only contains 
>      files under revision control and rsync that.
> 
>   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 guess this is the option I provide here. :)

> Ddaa, does that about cover the possibilities? Does anyone else have
> any suggestsions? Is this a feature that might go into bzr at some
> point in the future?

In the future there's going to be bzr repositories. You'll be able to
collect a bunch of bzr branches in one repository. This repository should
be highly suitable for rsync.

Regards,
James





More information about the bazaar mailing list