~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/log.py

  • Committer: John Arbash Meinel
  • Date: 2008-05-23 06:00:36 UTC
  • mto: This revision was merged to the branch mainline in revision 3461.
  • Revision ID: john@arbash-meinel.com-20080523060036-24gdulfvnog38w6v
Fix bug #172649. Cleanup, and handle the case where we are logging to the first revision.

Show diffs side-by-side

added added

removed removed

Lines of Context:
382
382
    for revision_id in branch.repository.iter_reverse_revision_history(
383
383
                        branch_last_revision):
384
384
        if cur_revno < start_revno:
385
 
            # We have gone far enough
386
 
            # import pdb; pdb.set_trace()
 
385
            # We have gone far enough, but we always add 1 more revision
387
386
            rev_nos[revision_id] = cur_revno
388
387
            mainline_revs.append(revision_id)
389
388
            break
391
390
            rev_nos[revision_id] = cur_revno
392
391
            mainline_revs.append(revision_id)
393
392
        cur_revno -= 1
 
393
    else:
 
394
        # We walked off the edge of all revisions, so we add a 'None' marker
 
395
        mainline_revs.append(None)
394
396
 
395
397
    mainline_revs.reverse()
396
398