~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2005-11-29 16:13:44 UTC
  • Revision ID: abentley@panoramicfeedback.com-20051129161344-3997ed0518fbdb2d
Introduced branch-history command

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
        import shell
170
170
        return shell.run_shell()
171
171
 
 
172
class cmd_branch_history(bzrlib.commands.Command):
 
173
    """\
 
174
    Display the revision history with reference to lines of development.
 
175
 
 
176
    Each different committer id is considered a different line of development,
 
177
    which means email address changes will be considered a different line.
 
178
    Changes in Branch nicks also cause a set of revisions to be considered a
 
179
    different line of development.
 
180
    """
 
181
    takes_args = ["branch?"]
 
182
    def run(self, branch=None):
 
183
        from branchhistory import branch_history 
 
184
        return branch_history(branch)
 
185
 
172
186
commands = [cmd_shelve, cmd_unshelve, cmd_clean_tree, cmd_graph_ancestry,
173
 
            cmd_fetch_ghosts, cmd_patch, cmd_shell, cmd_fix]
 
187
            cmd_fetch_ghosts, cmd_patch, cmd_shell, cmd_fix, cmd_branch_history]
174
188
 
175
189
command_decorators = []
176
190