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

Erik de Castro Lopo erikd+bzr at mega-nerd.com
Sun Dec 11 02:40:29 GMT 2005


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. 
For those not familiar with Arch, Arch worked around a local 
repository separate from the working directories. For each local 
repository a mirror could be defined and the "tla archive-mirror"
command would push all commits since the last run of the command
from the local repo to the mirror. In addition, if worst came to
worst and the original repo was lost, editing a single file on
the mirror would convert the mirror into a regular non-mirror
archive. My laptop currently holds 30 odd projects, many with two
or more branches. The nice thing about this being automated was
that the tool always did the right thing.

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.

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.

  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.

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?

Cheers,
Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
"The reasonable man adapts himself to the world; the unreasonable
one persists to adapt the world to himself. Therefore all
progress depends on the unreasonable man."
  -- George Bernard Shaw (1856-1950)




More information about the bazaar mailing list