~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2006-04-17 13:40:34 UTC
  • mfrom: (360.1.4 bzrtools)
  • Revision ID: abentley@panoramicfeedback.com-20060417134034-6e23a2000508f1e6
Merge branch marking

Show diffs side-by-side

added added

removed removed

Lines of Context:
353
353
                print e
354
354
 
355
355
 
 
356
class cmd_branch_mark(bzrlib.commands.Command):
 
357
    """
 
358
    Add, view or list branch markers <EXPERIMENTAL>
 
359
 
 
360
    To add a mark, do 'bzr branch-mark MARK'.
 
361
    To list marks, do 'bzr branch-mark' (this lists all marks for the branch's
 
362
    repository).
 
363
    To delete a mark, do 'bzr branch-mark --delete MARK'
 
364
 
 
365
    These marks can be used to track a branch's status.
 
366
    """
 
367
    takes_args = ['mark?', 'branch?']
 
368
    takes_options = [Option('delete', help='Delete this mark')]
 
369
    def run(self, mark=None, branch=None, delete=False):
 
370
        from branch_mark import branch_mark
 
371
        branch_mark(mark, branch, delete)
 
372
 
 
373
 
356
374
commands = [cmd_shelve, cmd_unshelve, cmd_shelf, cmd_clean_tree,
357
375
            cmd_graph_ancestry, cmd_fetch_ghosts, cmd_patch, cmd_shell,
358
376
            cmd_branch_history, cmd_zap, cmd_cbranch, cmd_branches, 
359
 
            cmd_multi_pull, cmd_switch]
 
377
            cmd_multi_pull, cmd_switch, cmd_branch_mark]
360
378
 
361
379
 
362
380
command_decorators = []