/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-05-06 02:13:25 UTC
  • mfrom: (7490.7.21 work)
  • mto: This revision was merged to the branch mainline in revision 7501.
  • Revision ID: jelmer@jelmer.uk-20200506021325-awbmmqu1zyorz7sj
Merge 3.1 branch.

Show diffs side-by-side

added added

removed removed

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