~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/revisionspec.py

  • Committer: Patch Queue Manager
  • Date: 2011-10-06 08:34:03 UTC
  • mfrom: (6191.2.1 843900-url-nameerror)
  • Revision ID: pqm@pqm.ubuntu.com-20111006083403-jnsw0exlirg01aed
(mbp) error message without traceback on invalid ubuntu/debian url (bug
 843900) (Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
209
209
    def in_history(self, branch):
210
210
        if branch:
211
211
            if self.wants_revision_history:
212
 
                # TODO: avoid looking at all of history
213
 
                branch.lock_read()
214
 
                try:
215
 
                    graph = branch.repository.get_graph()
216
 
                    revs = list(graph.iter_lefthand_ancestry(
217
 
                        branch.last_revision(), [revision.NULL_REVISION]))
218
 
                finally:
219
 
                    branch.unlock()
220
 
                revs.reverse()
 
212
                revs = branch.revision_history()
221
213
            else:
222
214
                revs = None
223
215
        else: