/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-17 19:08:25 UTC
  • mto: This revision was merged to the branch mainline in revision 4460.
  • Revision ID: john@arbash-meinel.com-20090617190825-ktfk82li57rf2im6
It seems that fetch() no longer returns the number of revisions fetched.
It still does for *some* InterRepository fetch paths, but the generic one does not.
It is also not easy to get it to, since the Source and Sink are the ones
that would know how many keys were transmitted, and they are potentially 'remote'
objects.

This was also only tested to occur as a by-product in a random 'test_commit' test.
I assume if we really wanted the assurance, we would have a per_repo or interrepo
test for it.

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