~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Aaron Bentley
  • Date: 2009-08-14 18:17:15 UTC
  • mto: (4603.1.22 shelve-editor)
  • mto: This revision was merged to the branch mainline in revision 4795.
  • Revision ID: aaron@aaronbentley.com-20090814181715-59qnhbov2stgzqt2
Allow configuring change editor.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5622
5622
        if writer is None:
5623
5623
            writer = bzrlib.option.diff_writer_registry.get()
5624
5624
        try:
5625
 
            Shelver.from_args(writer(sys.stdout), revision, all, file_list,
5626
 
                              message, destroy=destroy).run()
 
5625
            shelver = Shelver.from_args(writer(sys.stdout), revision, all,
 
5626
                                       file_list, message,
 
5627
                                       destroy=destroy)
 
5628
            shelver.set_change_editor()
 
5629
            try:
 
5630
                shelver.run()
 
5631
            finally:
 
5632
                if shelver.change_editor is not None:
 
5633
                    shelver.change_editor.finish()
5627
5634
        except errors.UserAbort:
5628
5635
            return 0
5629
5636