/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/commit.py

  • Committer: Martin Pool
  • Date: 2005-09-16 04:53:19 UTC
  • Revision ID: mbp@sourcefrog.net-20050916045318-95c77d043752ab60
- some weave operations automatically look up symbolic names if supplied

  I think it's better to mostly keep weave indexes hidden in that
  object

Show diffs side-by-side

added added

removed removed

Lines of Context:
228
228
        """Append merged revision ancestry to the ancestry file."""
229
229
        w = self.weave_store.get_weave_or_empty(ANCESTRY_FILEID)
230
230
        if self.parents:
231
 
            lines = w.get(w.lookup(self.parents[0]))
 
231
            lines = w.get(self.parents[0])
232
232
        else:
233
233
            lines = []
234
234
        lines.append(self.rev_id + '\n')
235
 
        parent_idxs = map(w.lookup, self.parents)
236
 
        w.add(self.rev_id, parent_idxs, lines)
 
235
        w.add(self.rev_id, self.parents, lines)
237
236
        self.weave_store.put_weave(ANCESTRY_FILEID, w)
238
237
 
239
238