~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-08-31 18:27:04 UTC
  • mfrom: (1948.4.36 revspec-errors-55420)
  • Revision ID: pqm@pqm.ubuntu.com-20060831182704-2de4cd234a448ed1
(jam) improve revision spec errors

Show diffs side-by-side

added added

removed removed

Lines of Context:
363
363
            return None
364
364
        if history is None:
365
365
            history = self.revision_history()
366
 
        elif revno <= 0 or revno > len(history):
 
366
        if revno <= 0 or revno > len(history):
367
367
            raise bzrlib.errors.NoSuchRevision(self, revno)
368
368
        return history[revno - 1]
369
369