~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-09-08 06:18:35 UTC
  • mfrom: (3695.1.1 trivial)
  • Revision ID: pqm@pqm.ubuntu.com-20080908061835-nz7hj7o0pms1nf9p
(trivial) Remove some unused imports,
        fix two trivially broken raise statements. (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
# across to run on the server.
19
19
 
20
20
import bz2
21
 
from cStringIO import StringIO
22
21
 
23
22
from bzrlib import (
24
23
    branch,
32
31
)
33
32
from bzrlib.branch import BranchReferenceFormat
34
33
from bzrlib.bzrdir import BzrDir, RemoteBzrDirFormat
35
 
from bzrlib.config import BranchConfig, TreeConfig
36
34
from bzrlib.decorators import needs_read_lock, needs_write_lock
37
35
from bzrlib.errors import (
38
36
    NoSuchRevision,
39
37
    SmartProtocolError,
40
38
    )
41
39
from bzrlib.lockable_files import LockableFiles
42
 
from bzrlib.pack import ContainerPushParser
43
40
from bzrlib.smart import client, vfs
44
 
from bzrlib.symbol_versioning import (
45
 
    deprecated_in,
46
 
    deprecated_method,
47
 
    )
48
41
from bzrlib.revision import ensure_null, NULL_REVISION
49
42
from bzrlib.trace import mutter, note, warning
50
43
 
554
547
            if _skip_rpc:
555
548
                if self._lock_token is not None:
556
549
                    if token != self._lock_token:
557
 
                        raise TokenMismatch(token, self._lock_token)
 
550
                        raise errors.TokenMismatch(token, self._lock_token)
558
551
                self._lock_token = token
559
552
            else:
560
553
                self._lock_token = self._remote_lock_write(token)