/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 generate_docs.py

  • Committer: John Arbash Meinel
  • Date: 2009-06-18 18:18:36 UTC
  • mto: This revision was merged to the branch mainline in revision 4461.
  • Revision ID: john@arbash-meinel.com-20090618181836-biodfkat9a8eyzjz
The new add_inventory_by_delta is returning a CHKInventory when mapping from NULL
Which is completely valid, but 'broke' one of the tests.
So to fix it, changed the test to use CHKInventories on both sides, and add an __eq__
member. The nice thing is that CHKInventory.__eq__ is fairly cheap, since it only
has to check the root keys.

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
import tools.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
 
    infogen_mod = doc_generate.get_module(infogen_type)
 
76
    infogen_mod = tools.doc_generate.get_module(infogen_type)
78
77
 
79
78
    if options.filename:
80
79
        outfilename = options.filename