~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/versionedfile.py

  • Committer: Robert Collins
  • Date: 2006-03-11 13:58:48 UTC
  • mto: (1615.1.2 bzr.mbp.integration)
  • mto: This revision was merged to the branch mainline in revision 1616.
  • Revision ID: robertc@robertcollins.net-20060311135848-789fa616b8da4662
Note potential improvements in knit adds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
457
457
        order = topo_sort(graph.items())
458
458
        pb = ui.ui_factory.nested_progress_bar()
459
459
        try:
 
460
            # make a versioned file with the following content:
 
461
            # all revisions we have been asked to join
 
462
            # all their ancestors that are *not* in target already.
 
463
            # the immediate parents of the above two sets, with 
 
464
            # empty parent lists - these versions are in target already
 
465
            # and the incorrect version data will be ignored.
 
466
            # TODO: for all ancestors that are present in target already,
 
467
            # check them for consistent data, this requires moving sha1 from
 
468
            # 
460
469
            for index, version in enumerate(order):
461
470
                pb.update('Converting versioned data', index, len(order))
462
471
                target.add_lines(version,