/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/smart/request.py

Merge from bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
import tempfile
21
21
 
22
 
from bzrlib import bzrdir, errors, registry, revision
 
22
from bzrlib import (
 
23
    bzrdir,
 
24
    errors,
 
25
    registry,
 
26
    revision,
 
27
    )
23
28
from bzrlib.bundle.serializer import write_bundle
24
29
 
25
30
 
26
31
class SmartServerRequest(object):
27
 
    """Base class for request handlers.
28
 
    """
 
32
    """Base class for request handlers."""
29
33
 
30
34
    def __init__(self, backing_transport):
 
35
        """Constructor.
 
36
 
 
37
        :param backing_transport: the base transport to be used when performing
 
38
            this request.
 
39
        """
31
40
        self._backing_transport = backing_transport
32
41
 
33
42
    def _check_enabled(self):
198
207
 
199
208
 
200
209
class GetBundleRequest(SmartServerRequest):
 
210
    """Get a bundle of from the null revision to the specified revision."""
201
211
 
202
212
    def do(self, path, revision_id):
203
213
        # open transport relative to our base