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

  • Committer: Robert Collins
  • Date: 2009-05-23 20:57:12 UTC
  • mfrom: (4371 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4441.
  • Revision ID: robertc@robertcollins.net-20090523205712-lcwbfqk6vwavinuv
MergeĀ .dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
"""Container format for Bazaar data.
18
18
 
234
234
        is a ``list`` and bytes is a function that takes one argument,
235
235
        ``max_length``.
236
236
 
237
 
        You **must not** call the callable after advancing the interator to the
 
237
        You **must not** call the callable after advancing the iterator to the
238
238
        next record.  That is, this code is invalid::
239
239
 
240
240
            record_iter = container.iter_records()
245
245
        As it will give incorrect results and invalidate the state of the
246
246
        ContainerReader.
247
247
 
248
 
        :raises ContainerError: if any sort of containter corruption is
 
248
        :raises ContainerError: if any sort of container corruption is
249
249
            detected, e.g. UnknownContainerFormatError is the format of the
250
250
            container is unrecognised.
251
251
        :seealso: ContainerReader.read
260
260
        methods.  Like with iter_records, it is not safe to use a record object
261
261
        after advancing the iterator to yield next record.
262
262
 
263
 
        :raises ContainerError: if any sort of containter corruption is
 
263
        :raises ContainerError: if any sort of container corruption is
264
264
            detected, e.g. UnknownContainerFormatError is the format of the
265
265
            container is unrecognised.
266
266
        :seealso: iter_records