~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: aaron.bentley at utoronto
  • Date: 2005-09-03 22:57:52 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20050903225752-b3f807e0514eda63
Added fetch-missing command

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
        graph.write_ancestry_file(branch, file, not no_collapse, 
59
59
                                  not no_antialias)
60
60
 
 
61
class cmd_fetch_missing(bzrlib.commands.Command):
 
62
    """Attempt to retrieve missing ancestors from another branch
 
63
    """
 
64
    takes_args = ['branch']
 
65
    def run(self, branch):
 
66
        from fetch_missing import fetch_missing
 
67
        fetch_missing(branch)
 
68
 
61
69
commands = [push.cmd_push, annotate.cmd_annotate, shelf.cmd_shelve, 
62
70
            shelf.cmd_unshelve, cmd_clean_tree, conflicts.cmd_conflicts,
63
 
            conflicts.cmd_resolve, cmd_graph_ancestry]
 
71
            conflicts.cmd_resolve, cmd_graph_ancestry, cmd_fetch_missing]
64
72
from errors import NoPyBaz
65
73
try:
66
74
    import baz_import