~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bundle/read_bundle.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-06-16 21:12:30 UTC
  • mfrom: (1711.3.5 bundle-fixes)
  • Revision ID: pqm@pqm.ubuntu.com-20060616211230-988a8faa0753cf18
(jam) Allow bundles to be 'pull'ed, and accessed over Transports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/usr/bin/env python
2
 
"""\
3
 
Read in a bundle stream, and process it into a BundleReader object.
4
 
"""
 
1
# Copyright (C) 2006 by Canonical Ltd
 
2
#
 
3
# This program is free software; you can redistribute it and/or modify
 
4
# it under the terms of the GNU General Public License as published by
 
5
# the Free Software Foundation; either version 2 of the License, or
 
6
# (at your option) any later version.
 
7
#
 
8
# This program is distributed in the hope that it will be useful,
 
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
# GNU General Public License for more details.
 
12
#
 
13
# You should have received a copy of the GNU General Public License
 
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
 
16
 
 
17
"""Read in a bundle stream, and process it into a BundleReader object."""
5
18
 
6
19
import base64
7
20
from cStringIO import StringIO
8
21
import os
9
22
import pprint
10
23
 
 
24
from bzrlib.bundle.common import get_header, header_str
 
25
import bzrlib.errors
11
26
from bzrlib.errors import (TestamentMismatch, BzrError, 
12
27
                           MalformedHeader, MalformedPatches, NotABundle)
13
 
from bzrlib.bundle.common import get_header, header_str
14
28
from bzrlib.inventory import (Inventory, InventoryEntry,
15
29
                              InventoryDirectory, InventoryFile,
16
30
                              InventoryLink)
18
32
from bzrlib.revision import Revision, NULL_REVISION
19
33
from bzrlib.testament import StrictTestament
20
34
from bzrlib.trace import mutter, warning
 
35
import bzrlib.transport
21
36
from bzrlib.tree import Tree
 
37
import bzrlib.urlutils
22
38
from bzrlib.xml5 import serializer_v5
23
39
 
24
40