~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to shelf.py

  • Committer: Michael Ellerman
  • Date: 2005-11-28 06:58:01 UTC
  • mto: (0.3.1 shelf-dev) (325.1.2 bzrtools)
  • mto: This revision was merged to the branch mainline in revision 334.
  • Revision ID: michael@ellerman.id.au-20051128065801-85aa3456f2b8e496
Shelve everything by default, use --pick to select hunks individually.

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
        out.seek(0)
93
93
        return out.readlines()
94
94
 
95
 
    def shelve(self, all_hunks=False, message=None, revision=None,
 
95
    def shelve(self, pick_hunks=False, message=None, revision=None,
96
96
             file_list=None):
97
97
        patches = parse_patches(self.get_patches(revision, file_list))
98
98
 
99
 
        if not all_hunks:
 
99
        if pick_hunks:
100
100
            try:
101
101
                patches = HunkSelector(patches).select()
102
102
            except QuitException: