/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to remote.py

  • Committer: Jelmer Vernooij
  • Date: 2018-03-02 01:59:40 UTC
  • mfrom: (0.200.1791 work)
  • mto: (0.200.1795 work)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@jelmer.uk-20180302015940-41gwnoymxc2go3bq
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
 
45
45
from .branch import (
46
46
    GitBranch,
 
47
    GitBranchFormat,
47
48
    GitTags,
48
49
    )
49
50
from .dir import (
246
247
        return client
247
248
 
248
249
 
 
250
class RemoteGitBranchFormat(GitBranchFormat):
 
251
 
 
252
    def get_format_description(self):
 
253
        return 'Remote Git Branch'
 
254
 
 
255
    @property
 
256
    def _matchingcontroldir(self):
 
257
        return RemoteGitControlDirFormat()
 
258
 
 
259
    def initialize(self, a_controldir, name=None, repository=None,
 
260
                   append_revisions_only=None):
 
261
        raise UninitializableFormat(self)
 
262
 
 
263
 
249
264
class RemoteGitDir(GitDir):
250
265
 
251
266
    def __init__(self, transport, format, get_client, client_path):
394
409
    def _known_formats(self):
395
410
        return set([RemoteGitControlDirFormat()])
396
411
 
 
412
    def get_branch_format(self):
 
413
        return RemoteGitBranchFormat()
 
414
 
397
415
    def is_initializable(self):
398
416
        return False
399
417
 
505
523
 
506
524
    def __init__(self, controldir, repository, name):
507
525
        self._sha = None
508
 
        super(RemoteGitBranch, self).__init__(controldir, repository, name)
 
526
        super(RemoteGitBranch, self).__init__(controldir, repository, name,
 
527
                RemoteGitBranchFormat())
509
528
 
510
529
    def last_revision_info(self):
511
530
        raise GitSmartRemoteNotSupported(self.last_revision_info, self)