~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Michael Ellerman
  • Date: 2005-10-19 12:29:16 UTC
  • mto: (0.3.1 shelf-dev) (325.1.2 bzrtools)
  • mto: This revision was merged to the branch mainline in revision 246.
  • Revision ID: michael@ellerman.id.au-20051019122916-5e6715d4b981080a
Implement "bzr shelve --all".

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
    unshelved.
15
15
    """
16
16
    takes_args = ['file*']
17
 
    takes_options = ['message', 'revision']
18
 
    def run(self, file_list=None, message=None, revision=None):
 
17
    takes_options = ['all', 'message', 'revision']
 
18
    def run(self, all=False, file_list=None, message=None, revision=None):
19
19
        revision_list = None
20
20
        if revision is not None and revision:
21
21
            if file_list is not None and len(file_list) > 0:
26
26
            revision_list = ["revid:" + revision[0].in_history(b).rev_id]
27
27
 
28
28
        s = Shelf()
29
 
        return s.shelve(message=message, file_list=file_list,
30
 
                      revision=revision_list)
 
29
        return s.shelve(all_hunks=all, message=message, file_list=file_list,
 
30
                    revision=revision_list)
31
31
 
32
32
class cmd_unshelve(bzrlib.commands.Command):
33
33
    """Restore previously-shelved changes to the current tree.