~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/medium.py

  • Committer: Vincent Ladeuil
  • Date: 2010-02-02 12:52:13 UTC
  • mto: (5008.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5009.
  • Revision ID: v.ladeuil+lp@free.fr-20100202125213-h08auwpb9zbtvjmb
Settle with --take-this and --take-other as action names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006-2010 Canonical Ltd
 
1
# Copyright (C) 2006 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
749
749
        self._password = password
750
750
        self._port = port
751
751
        self._username = username
752
 
        # for the benefit of progress making a short description of this
753
 
        # transport
754
 
        self._scheme = 'bzr+ssh'
755
752
        # SmartClientStreamMedium stores the repr of this object in its
756
753
        # _DebugCounter so we have to store all the values used in our repr
757
754
        # method before calling the super init.
761
758
        self._vendor = vendor
762
759
        self._write_to = None
763
760
        self._bzr_remote_path = bzr_remote_path
 
761
        # for the benefit of progress making a short description of this
 
762
        # transport
 
763
        self._scheme = 'bzr+ssh'
764
764
 
765
765
    def __repr__(self):
766
 
        if self._port is None:
767
 
            maybe_port = ''
768
 
        else:
769
 
            maybe_port = ':%s' % self._port
770
 
        return "%s(%s://%s@%s%s/)" % (
 
766
        return "%s(connected=%r, username=%r, host=%r, port=%r)" % (
771
767
            self.__class__.__name__,
772
 
            self._scheme,
 
768
            self._connected,
773
769
            self._username,
774
770
            self._host,
775
 
            maybe_port)
 
771
            self._port)
776
772
 
777
773
    def _accept_bytes(self, bytes):
778
774
        """See SmartClientStreamMedium.accept_bytes."""