~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to scripts/branch-rewrite.py

  • Committer: Stuart Bishop
  • Date: 2011-09-28 12:49:24 UTC
  • mfrom: (9893.10.1 trivial)
  • mto: This revision was merged to the branch mainline in revision 14178.
  • Revision ID: stuart.bishop@canonical.com-20110928124924-m5a22fymqghw6c5i
Merged trivial into distinct-db-users.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
lp.codehosting.rewrite.BranchRewriter for the logic of the rewritemap.
13
13
"""
14
14
 
15
 
import _pythonpath
16
 
 
17
15
import os
18
16
import sys
19
17
 
20
 
from canonical.database.sqlbase import ISOLATION_LEVEL_AUTOCOMMIT
 
18
import _pythonpath
 
19
 
21
20
from canonical.config import config
22
21
from canonical.launchpad.interfaces.lpstorm import ISlaveStore
23
22
from lp.code.model.branch import Branch
24
23
from lp.codehosting.rewrite import BranchRewriter
25
 
from lp.services.log.loglevels import INFO, WARNING
 
24
from lp.services.log.loglevels import (
 
25
    INFO,
 
26
    WARNING,
 
27
    )
26
28
from lp.services.scripts.base import LaunchpadScript
27
29
 
28
30
 
79
81
 
80
82
if __name__ == '__main__':
81
83
    BranchRewriteScript("branch-rewrite", dbuser='branch-rewrite').run(
82
 
        isolation=ISOLATION_LEVEL_AUTOCOMMIT)
 
84
        isolation='autocommit')