~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2005-11-21 14:29:35 UTC
  • mfrom: (288 bzrtools)
  • mto: (147.4.24 trunk)
  • mto: This revision was merged to the branch mainline in revision 324.
  • Revision ID: abentley@panoramicfeedback.com-20051121142935-96c67761f8d04a12
Updated from mainline bzrtools

Show diffs side-by-side

added added

removed removed

Lines of Context:
142
142
        return s.unshelve()
143
143
 
144
144
class cmd_shell(bzrlib.commands.Command):
 
145
    """Begin an interactive shell tailored for bzr.
 
146
    Bzr commands can be used without typing bzr first, and will be run natively
 
147
    when possible.  Tab completion is tailored for bzr.  The shell prompt shows
 
148
    the branch nick, revno, and path.
 
149
 
 
150
    If it encounters any moderately complicated shell command, it will punt to
 
151
    the system shell.
 
152
 
 
153
    Example:
 
154
    $ bzr shell
 
155
    bzr bzrtools:287/> status
 
156
    modified:
 
157
      __init__.py
 
158
    bzr bzrtools:287/> status --[TAB][TAB]
 
159
    --all        --help       --revision   --show-ids
 
160
    bzr bzrtools:287/> status --
 
161
    """
145
162
    def run(self):
146
163
        import shell
147
164
        return shell.run_shell()