~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lockdir.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:
358
358
            return
359
359
        if holder_info is not None:
360
360
            lock_info = '\n'.join(self._format_lock_info(holder_info))
361
 
            if bzrlib.ui.ui_factory.get_boolean("Break %s" % lock_info):
 
361
            if bzrlib.ui.ui_factory.confirm_action(
 
362
                "Break %(lock_info)s", 'bzrlib.lockdir.break', 
 
363
                dict(lock_info=lock_info)):
362
364
                self.force_break(holder_info)
363
365
 
364
366
    def force_break(self, dead_holder_info):