~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: 2009-12-18 09:05:13 UTC
  • mfrom: (4505.6.30 lp-login-oauth-2)
  • Revision ID: pqm@pqm.ubuntu.com-20091218090513-kzwkjw7rdf7bahqi
(jml) Add an lp-mirror command to request that Launchpad mirror a
        branch now. Add an API for interacting with launchpadlib using Bazaar.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006-2010 Canonical Ltd
 
1
# Copyright (C) 2006, 2007 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
32
32
 
33
33
 
34
34
import tempfile
35
 
import thread
36
35
import threading
37
36
 
38
37
from bzrlib import (
292
291
        self._command = None
293
292
        if 'hpss' in debug.debug_flags:
294
293
            self._request_start_time = osutils.timer_func()
295
 
            self._thread_id = thread.get_ident()
 
294
            self._thread_id = threading.currentThread().get_ident()
296
295
 
297
296
    def _trace(self, action, message, extra_bytes=None, include_time=False):
298
297
        # It is a bit of a shame that this functionality overlaps with that of 
561
560
    'BzrDir.open_branchV2', 'bzrlib.smart.bzrdir',
562
561
    'SmartServerRequestOpenBranchV2')
563
562
request_handlers.register_lazy(
564
 
    'BzrDir.open_branchV3', 'bzrlib.smart.bzrdir',
565
 
    'SmartServerRequestOpenBranchV3')
566
 
request_handlers.register_lazy(
567
563
    'delete', 'bzrlib.smart.vfs', 'DeleteRequest')
568
564
request_handlers.register_lazy(
569
565
    'get', 'bzrlib.smart.vfs', 'GetRequest')