/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to __init__.py

  • Committer: Jelmer Vernooij
  • Date: 2008-07-04 12:43:31 UTC
  • mto: (0.140.25 trunk) (6645.1.1 stats)
  • mto: This revision was merged to the branch mainline in revision 6646.
  • Revision ID: jelmer@samba.org-20080704124331-hg0jgb6cs9boauut
Add another progress bar.

Show diffs side-by-side

added added

removed removed

Lines of Context:
310
310
    repository.lock_read()
311
311
    try:
312
312
        ancestry = filter(lambda x: x is not None, repository.get_ancestry(revid))
 
313
        revs = repository.get_revisions(ancestry)
313
314
        pb = ui.ui_factory.nested_progress_bar()
314
315
        try:
315
 
            revs = repository.get_revisions(ancestry)
316
 
            for rev,delta in izip(revs, repository.get_deltas_for_revisions(revs)):
 
316
            for i, (rev,delta) in enumerate(izip(revs, repository.get_deltas_for_revisions(revs))):
 
317
                pb.update("analysing revisions", i, len(revs))
317
318
                # Don't count merges
318
319
                if len(rev.parent_ids) > 1:
319
320
                    continue