~launchpad-pqm/launchpad/devel

10637.3.1 by Guilherme Salgado
Use the default python version instead of a hard-coded version
1
#!/usr/bin/python -S
8687.15.22 by Karl Fogel
Add the copyright header block to the remaining .py files.
2
#
3
# Copyright 2009 Canonical Ltd.  This software is licensed under the
4
# GNU Affero General Public License version 3 (see the file LICENSE).
5
8132.5.1 by Tim Penhey
A script to be used for smart backups.
6
# pylint: disable-msg=W0403
7
8
"""Script to print disk locations of modified branches.
9
10
This script will be used by IS for the rsync backups.
11
"""
12
13
import _pythonpath
8132.5.2 by Tim Penhey
Move the guts of the script into the codehosting area, and add tests.
14
8426.6.1 by Michael Hudson
bzr ls --versioned --recursive --kind=file | xargs sed -i -e 's,from canonical.codehosting,from lp.codehosting,'
15
from lp.codehosting.scripts.modifiedbranches import (
8132.5.2 by Tim Penhey
Move the guts of the script into the codehosting area, and add tests.
16
    ModifiedBranchesScript)
8132.5.1 by Tim Penhey
A script to be used for smart backups.
17
18
19
if __name__ == '__main__':
9121.2.1 by Tim Penhey
Add extra options for the script for the IS team.
20
    script = ModifiedBranchesScript(
21
        'modified-branches', dbuser='modified-branches')
8132.5.1 by Tim Penhey
A script to be used for smart backups.
22
    script.run()