
On 7 Jul, 04:25 pm, adi@roiban.ro wrote:
Hi,
LP BZR Mirror status --------------------
Martin Pool enabled trunk import directly from SVN repo and the branch is available here: https://code.launchpad.net/~vcs-imports/twisted/trunk
The mirror is refreshed about every 5 to 6 hours. Only trunk is available.
Cool.
Own BZR Mirror --------------
I have hacked a quick and dirty script for pulling / creating / deleting all Twisted svn branches.
The code is here: http://pastebin.ubuntu.com/639582/
Synchronizing all branches takes about 41 minutes on an Intel Xeon 2.8G CPU. It does not uses to much memory since each branch is pulled using a different bzr pull process.
Pulling a single branch takes about 15 seconds, so maybe we the SVN repo can have some commit hooks to execute 'bzr pull' in the right branch.
I think getting the right hook set up to update just the right branch is what we want to focus on. Presently svn and bzr are hosted on the same machine, which perhaps we can continue since this should bring the overhead of mirroring down. There is even a little code in lp:twisted- trac-integration for determining which branch a changeset is on (at least for the branch creation changeset) which might help.
Please let me know what do you think should be the next action for resolving the bzr mirror issues?
Do you think you can put together something to run from an svn post- commit hook to update just the single corresponding bzr branch? Meanwhile I can try your synchronization code to see if it has better results than the current bzr svn-import based approach. Thanks, Jean-Paul