~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/lockdir.py

  • Committer: Vincent Ladeuil
  • Date: 2011-08-12 12:11:44 UTC
  • mto: This revision was merged to the branch mainline in revision 6075.
  • Revision ID: v.ladeuil+lp@free.fr-20110812121144-36z4ezknlgkmv9i6
Migrate locks.steal_dead to stack-based config.

Show diffs side-by-side

added added

removed removed

Lines of Context:
295
295
        """
296
296
        if (other_holder is not None):
297
297
            if other_holder.is_lock_holder_known_dead():
298
 
                if self.get_config().get_user_option_as_bool(
299
 
                    'locks.steal_dead',
300
 
                    default=False):
 
298
                if self.get_config().get('locks.steal_dead'):
301
299
                    ui.ui_factory.show_user_warning(
302
300
                        'locks_steal_dead',
303
301
                        lock_url=urlutils.join(self.transport.base, self.path),
709
707
        """Get the configuration that governs this lockdir."""
710
708
        # XXX: This really should also use the locationconfig at least, but
711
709
        # that seems a bit hard to hook up at the moment. -- mbp 20110329
712
 
        return config.GlobalConfig()
 
710
        # FIXME: The above is still true ;) -- vila 20110811
 
711
        return config.GlobalStack()
713
712
 
714
713
 
715
714
class LockHeldInfo(object):