~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-09-15 12:02:35 UTC
  • mfrom: (5416.1.13 ui-factory)
  • Revision ID: pqm@pqm.ubuntu.com-20100915120235-gjrl0gmv0vxbu7b0
(mbp) add structured confirmations to the ui_factory (Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4801
4801
            self.outf.write('The above revision(s) will be removed.\n')
4802
4802
 
4803
4803
        if not force:
4804
 
            if not ui.ui_factory.get_boolean('Are you sure'):
4805
 
                self.outf.write('Canceled')
 
4804
            if not ui.ui_factory.confirm_action(
 
4805
                    'Uncommit these revisions',
 
4806
                    'bzrlib.builtins.uncommit',
 
4807
                    {}):
 
4808
                self.outf.write('Canceled\n')
4806
4809
                return 0
4807
4810
 
4808
4811
        mutter('Uncommitting from {%s} to {%s}',