~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/request.py

  • Committer: Marius Kruger
  • Date: 2008-10-03 21:31:00 UTC
  • mfrom: (3763 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3809.
  • Revision ID: amanic@gmail.com-20081003213100-q4rv2l9pn8qto9o0
merge with bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    revision,
36
36
    urlutils,
37
37
    )
38
 
from bzrlib.bundle.serializer import write_bundle
 
38
from bzrlib.lazy_import import lazy_import
 
39
lazy_import(globals(), """
 
40
from bzrlib.bundle import serializer
 
41
""")
39
42
 
40
43
 
41
44
class SmartServerRequest(object):
360
363
        repo = control.open_repository()
361
364
        tmpf = tempfile.TemporaryFile()
362
365
        base_revision = revision.NULL_REVISION
363
 
        write_bundle(repo, revision_id, base_revision, tmpf)
 
366
        serializer.write_bundle(repo, revision_id, base_revision, tmpf)
364
367
        tmpf.seek(0)
365
368
        return SuccessfulSmartServerResponse((), tmpf.read())
366
369