~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/knit.py

  • Committer: Robert Collins
  • Date: 2007-07-13 18:08:43 UTC
  • mto: (2592.5.3 pack-repository)
  • mto: This revision was merged to the branch mainline in revision 2933.
  • Revision ID: robertc@robertcollins.net-20070713180843-4e3hfamt1l8udca2
Implement KnitGraphIndex.num_versions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1383
1383
        return [(key, refs[0]) for (key, refs, value) in 
1384
1384
            self._graph_index.iter_all_entries()]
1385
1385
 
 
1386
    def num_versions(self):
 
1387
        return len(list(self._graph_index.iter_all_entries()))
1386
1388
 
1387
1389
class _KnitData(_KnitComponentFile):
1388
1390
    """Contents of the knit data file"""