~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: 2011-08-17 05:34:42 UTC
  • mfrom: (6059.4.8 migrate-config-options)
  • Revision ID: pqm@pqm.ubuntu.com-20110817053442-pz1w7iw2w0w78ewy
(vila) More options migrated to the stack-based config. (Vincent Ladeuil)

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):