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 |
|
14612.2.7
by William Grant
scripts |
15 |
from lp.codehosting.scripts.modifiedbranches import ModifiedBranchesScript |
8132.5.1
by Tim Penhey
A script to be used for smart backups. |
16 |
|
17 |
||
18 |
if __name__ == '__main__': |
|
9121.2.1
by Tim Penhey
Add extra options for the script for the IS team. |
19 |
script = ModifiedBranchesScript( |
20 |
'modified-branches', dbuser='modified-branches') |
|
8132.5.1
by Tim Penhey
A script to be used for smart backups. |
21 |
script.run() |