~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/weave.py

  • Committer: Robert Collins
  • Date: 2005-10-10 03:24:15 UTC
  • Revision ID: robertc@robertcollins.net-20051010032415-2d3840758bc6e9b8
merge in and make incremental Gustavo Niemeyers nested log patch, and remove all bare exceptions in store and transport packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
81
81
        transaction.register_clean(w)
82
82
        return w
83
83
 
84
 
 
85
84
    def get_lines(self, file_id, rev_id, transaction):
86
85
        """Return text from a particular version of a weave.
87
86
 
107
106
        sio = StringIO()
108
107
        write_weave_v5(weave, sio)
109
108
        sio.seek(0)
110
 
 
111
109
        self._put(file_id, sio)
112
110
 
113
 
 
114
111
    def add_text(self, file_id, rev_id, new_lines, parents, transaction):
115
112
        w = self.get_weave_or_empty(file_id, transaction)
116
113
        parent_idxs = map(w.lookup, parents)