~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2006-03-24 05:20:43 UTC
  • Revision ID: aaron.bentley@utoronto.ca-20060324052043-8ca956b39b27ad42
Added cbranch command

Show diffs side-by-side

added added

removed removed

Lines of Context:
275
275
        return zap(checkout)
276
276
 
277
277
 
 
278
class cmd_cbranch(bzrlib.commands.Command):
 
279
    """
 
280
    Create a new checkout, associated with a new repository branch. <BZRTOOLS>
 
281
    
 
282
    When you cbranch, bzr looks up the repository associated with your current
 
283
    directory in branches.conf.  It creates a new branch in that repository
 
284
    with the same name and relative path as the checkout you request.
 
285
    """
 
286
    takes_args = ["source", "target"]
 
287
    def run(self, source, target):
 
288
        from cbranch import cbranch
 
289
        return cbranch(source, target)
 
290
 
278
291
commands = [cmd_shelve, cmd_unshelve, cmd_shelf, cmd_clean_tree,
279
292
            cmd_graph_ancestry, cmd_fetch_ghosts, cmd_patch, cmd_shell,
280
 
            cmd_branch_history, cmd_zap]
 
293
            cmd_branch_history, cmd_zap, cmd_cbranch]
281
294
 
282
295
 
283
296
command_decorators = []