Useful script: multi-push script to push a hierarchy of branches

Andrew Bennetts andrew.bennetts at canonical.com
Thu Dec 11 08:26:08 GMT 2008


Colin D Bennett wrote:
[...]
> Anyway, this would be simple to add, I'm sure, and I may take a look at
> it myself.  Do you think it would be acceptable for repo-push to walk
> all subdirectories of the source tree (current directory) and push all
> branches, so that if I were to run 'bzr repo-push X' from 'somewhere/',
> then all the trees below it would be pushed?

Btw, there's already a BzrDir.find_branches(transport) staticmethod that can
do that walk for you.  (And a more flexible/complex BzrDir.find_bzrdirs
staticmethod too.)

-Andrew.




More information about the bazaar mailing list