/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 bzrlib/info.py

  • Committer: Martin Pool
  • Date: 2005-05-19 06:37:21 UTC
  • Revision ID: mbp@sourcefrog.net-20050519063721-555aeba2dc1f659d
- use builtin set object in python2.4 
  (suggested by Mario Pernici)
- clean up some uses of set() that can simply be lists or dicts
- remove some imports from the bzrlib namespace 

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
# along with this program; if not, write to the Free Software
17
17
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18
18
 
19
 
from sets import Set
20
19
import time
21
20
 
22
21
from osutils import format_date
82
81
    history = b.revision_history()
83
82
    revno = len(history)
84
83
    print '  %8d revision%s' % (revno, plural(revno))
85
 
    committers = Set()
 
84
    committers = {}
86
85
    for rev in history:
87
 
        committers.add(b.get_revision(rev).committer)
 
86
        committers[b.get_revision(rev).committer)] = True
88
87
    print '  %8d committer%s' % (len(committers), plural(len(committers)))
89
88
    if revno > 0:
90
89
        firstrev = b.get_revision(history[0])