/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: John Arbash Meinel
  • Date: 2006-06-30 15:09:41 UTC
  • mto: (0.143.2 stats) (6645.1.1 stats)
  • mto: This revision was merged to the branch mainline in revision 6646.
  • Revision ID: john@arbash-meinel.com-20060630150941-ebfc9e7958d56866
add a little bit of progress since it takes a while.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
            b = wt.branch
24
24
            last_rev = wt.last_revision()
25
25
 
 
26
        pb = bzrlib.ui.ui_factory.nested_progress_bar()
26
27
        committers = {}
27
28
        b.lock_read()
28
29
        try:
29
 
            ancestry = b.repository.get_ancestry(last_rev)
30
 
            revisions = b.repository.get_revisions(ancestry[1:])
 
30
            pb.note('getting ancestry')
 
31
            ancestry = b.repository.get_ancestry(last_rev)[1:]
 
32
            pb.note('getting revisions')
 
33
            revisions = b.repository.get_revisions(ancestry)
31
34
 
32
 
            for rev in revisions:
 
35
            for count, rev in enumerate(revisions):
 
36
                pb.update('checking', count, len(ancestry))
33
37
                try:
34
38
                    email = extract_email_address(rev.committer)
35
39
                except errors.BzrError:
37
41
                committers.setdefault(email, []).append(rev)
38
42
        finally:
39
43
            b.unlock()
 
44
        pb.clear()
40
45
 
41
46
        committer_list = sorted(((len(v), k, v) for k,v in committers.iteritems()), reverse=True)
42
47
        for count, k, v in committer_list: