~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Robert Collins
  • Date: 2006-05-04 11:17:36 UTC
  • mto: (1697.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1701.
  • Revision ID: robertc@robertcollins.net-20060504111736-b61e8e7c87c3aaaa
Teach Repository about break_lock.

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
        result = self._all_possible_ids()
117
117
        return self._eliminate_revisions_not_present(result)
118
118
 
 
119
    def break_lock(self):
 
120
        """Break a lock if one is present from another instance.
 
121
 
 
122
        Uses the ui factory to ask for confirmation if the lock may be from
 
123
        an active process.
 
124
        """
 
125
        self.control_files.break_lock()
 
126
 
119
127
    @needs_read_lock
120
128
    def _eliminate_revisions_not_present(self, revision_ids):
121
129
        """Check every revision id in revision_ids to see if we have it.