/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 breezy/plugins/darcs/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2020-06-15 01:29:36 UTC
  • mfrom: (7490.40.4 work)
  • mto: (7490.40.19 work)
  • mto: This revision was merged to the branch mainline in revision 7516.
  • Revision ID: jelmer@jelmer.uk-20200615012936-1adqbu592y7lzmy8
Merge upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
 
60
60
    def open(self, transport, _found=False):
61
61
        """Open this directory."""
62
 
        raise DarcsUnsupportedError(self)
 
62
        raise DarcsUnsupportedError()
63
63
 
64
64
    def check_support_status(self, allow_unsupported, recommend_upgrade=True,
65
65
                             basedir=None):
66
 
        raise DarcsUnsupportedError(self)
 
66
        raise DarcsUnsupportedError()
67
67
 
68
68
    def open(self, transport):
69
69
        # Raise NotBranchError if there is nothing there
75
75
 
76
76
    @classmethod
77
77
    def priority(klass, transport):
 
78
        if 'darcs' in transport.base:
 
79
            return 90
78
80
        return 100
79
81
 
80
82
    @classmethod
81
83
    def probe_transport(klass, transport):
82
 
        if transport.has('_darcs'):
 
84
        if transport.has('_darcs/format'):
83
85
            return DarcsDirFormat()
84
86
        raise errors.NotBranchError(path=transport.base)
85
87