~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to scripts/mirror-branch.py

Reply to most of Andrew's review comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/python2.4
2
2
# Copyright 2007 Canonical Ltd.  All rights reserved.
3
3
 
 
4
# Script run by cronscripts/supermirror-pull.py to mirror individual branches.
 
5
# This script does not use the standard Launchpad script framework as it is
 
6
# not intended to be run by itself.
 
7
 
 
8
 
4
9
import _pythonpath
5
10
from optparse import OptionParser
6
11
import sys
49
54
    shut_up_deprecation_warning()
50
55
    force_bzr_to_use_urllib()
51
56
 
52
 
    protocol = PullerWorkerProtocol(sys.stdout, sys.stderr)
 
57
    protocol = PullerWorkerProtocol(sys.stdout)
53
58
    PullerWorker(
54
59
        source_url, destination_url, int(branch_id), unique_name, branch_type,
55
60
        protocol).mirror()