~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2005-11-24 16:51:13 UTC
  • Revision ID: abentley@panoramicfeedback.com-20051124165113-76977367c6f4dc34
Updated shelf help

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
 
107
107
 
108
108
class cmd_shelve(bzrlib.commands.Command):
109
 
    """Temporarily remove some changes from the current tree.
 
109
    """Temporarily remove some text changes from the current tree.
110
110
    Use 'unshelve' to restore these changes.
111
111
 
112
 
    If filenames are specified, only changes to those files will be unshelved.
 
112
    Shelve is intended to help separate several sets of text changes that have
 
113
    been inappropriately mingled.  If you just want to get rid of all changes
 
114
    (text and otherwise) and you don't need to restore them later, use revert.
 
115
    If you want to shelve all text changes at once, use shelve --all.
 
116
 
 
117
    If filenames are specified, only changes to those files will be shelved.
113
118
    If a revision is specified, all changes since that revision will may be
114
 
    unshelved.
 
119
    shelved.
115
120
    """
116
121
    takes_args = ['file*']
117
 
    takes_options = ['all', 'message', 'revision']
 
122
    takes_options = [Option('all', 
 
123
                            help='Shelve all changes without prompting'), 
 
124
                     'message', 'revision']
118
125
    def run(self, all=False, file_list=None, message=None, revision=None):
119
126
        if file_list is not None and len(file_list) > 0:
120
127
            branchdir = file_list[0]