~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/upgrade.py

  • Committer: Martin Pool
  • Date: 2005-09-19 08:02:41 UTC
  • Revision ID: mbp@sourcefrog.net-20050919080241-d9460223db8f7d90
- rename to Revision.parent_ids to avoid confusion with old usage
  where Revision.parents held objects rather than strings\t

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
                updated = True
76
76
                mutter("  set inventory_sha1 on {%s}" % rev_id)
77
77
 
78
 
            for prr in rev.parents:
79
 
                try:
80
 
                    actual_sha1 = branch.get_revision_sha1(prr.revision_id)
81
 
                except bzrlib.errors.NoSuchRevision:
82
 
                    mutter("parent {%s} of {%s} not present in branch; skipped"
83
 
                           % (prr.revision_id, rev_id))
84
 
                    continue
85
 
                    
86
 
                if actual_sha1 != prr.revision_sha1:
87
 
                    mutter("parent {%s} of {%s} sha1 mismatch: "
88
 
                           "%s vs %s; fixed"
89
 
                           % (prr.revision_id, rev_id,
90
 
                              actual_sha1, prr.revision_sha1))
91
 
                    prr.revision_sha1 = actual_sha1
92
 
                    updated = True
93
 
 
94
78
            if updated:
95
79
                updated_previous_revision = True
96
80
                # We had to update this revision entries hashes