~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Aaron Bentley
  • Date: 2008-10-11 14:18:19 UTC
  • mto: This revision was merged to the branch mainline in revision 3823.
  • Revision ID: aaron@aaronbentley.com-20081011141819-w3vbnau9b8rk3fyq
Support selecting files to shelve

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
class cmd_shelve2(commands.Command):
23
23
    """Put some changes to the side for a while."""
24
24
 
 
25
    takes_args = ['file*']
 
26
 
25
27
    takes_options = [
26
28
        'revision',
27
29
        commands.Option('all', help='Shelve all changes.')]
28
30
 
29
 
    def run(self, revision=None, all=False):
 
31
    def run(self, revision=None, all=False, file_list=None):
30
32
        from bzrlib.plugins.shelf2.shelf_ui import Shelver
31
 
        Shelver.from_args(revision, all).run()
 
33
        Shelver.from_args(revision, all, file_list).run()
 
34
 
32
35
 
33
36
class cmd_unshelve2(commands.Command):
34
37
    """Restore shelved changes."""