/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tools/generate_docs.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-07-20 08:56:45 UTC
  • mfrom: (4526.9.23 apply-inventory-delta)
  • Revision ID: pqm@pqm.ubuntu.com-20090720085645-54mtgybxua0yx6hw
(robertc) Add checks for inventory deltas which try to ensure that
        deltas that are not an exact fit are not applied. (Robert
        Collins, bug 397705, bug 367633)

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
 
33
33
Run "%(prog)s --help" for the option reference.
34
34
"""
35
 
import os
 
35
 
 
36
import bzrlib.commands
36
37
import sys
37
38
from optparse import OptionParser
38
39
 
39
 
sys.path.insert(0, os.path.dirname(os.path.dirname(__file__)))
40
 
 
41
 
from bzrlib import commands, doc_generate
 
40
from bzrlib import doc_generate
42
41
 
43
42
def main(argv):
44
43
    parser = OptionParser(usage="""%prog [options] OUTPUT_FORMAT
70
69
    if len(args) != 2:
71
70
        parser.print_help()
72
71
        sys.exit(1)
73
 
 
74
 
    commands.install_bzr_command_hooks()
 
72
    
 
73
    bzrlib.commands.install_bzr_command_hooks()
75
74
 
76
75
    infogen_type = args[1]
77
76
    infogen_mod = doc_generate.get_module(infogen_type)