/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-11 06:07:43 UTC
  • Revision ID: mbp@sourcefrog.net-20050511060743-82c5a87967ad4537
- remove diff_trees from public api

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
19
20
import time
20
21
 
21
22
from osutils import format_date
48
49
    basis = b.basis_tree()
49
50
    working = b.working_tree()
50
51
    work_inv = working.inventory
51
 
    delta = diff.compare_trees(basis, working, want_unchanged=True)
 
52
    delta = diff.compare_trees(basis, working)
52
53
    
53
54
    print
54
55
    print 'in the working tree:'
81
82
    history = b.revision_history()
82
83
    revno = len(history)
83
84
    print '  %8d revision%s' % (revno, plural(revno))
84
 
    committers = {}
 
85
    committers = Set()
85
86
    for rev in history:
86
 
        committers[b.get_revision(rev).committer] = True
 
87
        committers.add(b.get_revision(rev).committer)
87
88
    print '  %8d committer%s' % (len(committers), plural(len(committers)))
88
89
    if revno > 0:
89
90
        firstrev = b.get_revision(history[0])