[Twisted-Python] Twisted bzr mirror (Was: Twisted Project Jobs Volunteer)

Adi Roiban adi at roiban.ro
Tue Aug 9 13:32:35 EDT 2011

On Mon, 2011-08-08 at 13:07 +0000, exarkun at twistedmatrix.com wrote:
> On 12 Jul, 12:11 pm, adi at roiban.ro wrote:
> >On Mon, 2011-07-11 at 11:30 +0000, exarkun at twistedmatrix.com wrote:
> >>On 9 Jul, 10:46 am, adi at roiban.ro wrote:
> >> >On Fri, 2011-07-08 at 16:20 +0000, exarkun at twistedmatrix.com wrote:
> >> >>On 7 Jul, 04:25 pm, adi at roiban.ro wrote:
> >> >[snip]
> >[snip]
> >>I ran this (all-branches version) a few times over the weekend.  The
> >>first time, when there was lots of catching up to do, took about 3.5
> >>hours.  After that, it was about 30 minutes per run.  This does seem
> >>fast enough to do nightly, so I'll set that up until we have the push-
> >>based version.
> >
> >I have created a script that can be used together with a svn post- 
> >commit
> >hook to keep an bzr mirror in sync.
> Thanks.  Sorry about the delay in getting back to you on this.  Another 
> issue I think the push version needs to deal with is concurrent 
> invocation.  It looks like the script will issue overlapping "bzr pull" 
> commands now, which doesn't work very well.  Do you think you could add 
> some locking somewhere to avoid this?
> Thanks again,
> Jean-Paul

Don't worry for the delay.

I have added locking to the script.

The result is here:

Feel free to review the code when you have time and let me know if you
find any other problems.


More information about the Twisted-Python mailing list