~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/request.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-10-01 07:56:03 UTC
  • mfrom: (3224.5.40 faster-startup)
  • Revision ID: pqm@pqm.ubuntu.com-20081001075603-s9nynw8y85fmrprj
Reduce startup time by a small amount. (Andrew Bennetts)

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