File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 13
13
import structlog
14
14
import yaml
15
15
from django .conf import settings
16
- from django .utils .translation import gettext_lazy as _
17
16
18
17
from readthedocs .builds .constants import EXTERNAL
19
18
from readthedocs .config .config import CONFIG_FILENAME_REGEX
@@ -78,11 +77,7 @@ def setup_vcs(self):
78
77
os .makedirs (self .data .project .doc_path )
79
78
80
79
if not self .data .project .vcs_class ():
81
- raise RepositoryError (
82
- _ ('Repository type "{repo_type}" unknown' ).format (
83
- repo_type = self .data .project .repo_type ,
84
- ),
85
- )
80
+ raise RepositoryError (RepositoryError .UNSUPPORTED_VCS )
86
81
87
82
before_vcs .send (
88
83
sender = self .data .version ,
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ class RepositoryError(BuildUserError):
25
25
DUPLICATED_RESERVED_VERSIONS = "project:repository:duplicated-reserved-versions"
26
26
FAILED_TO_CHECKOUT = "project:repository:checkout-failed"
27
27
GENERIC = "project:repository:generic-error"
28
+ UNSUPPORTED_VCS = "project:repository:unsupported-vcs"
28
29
29
30
30
31
class SyncRepositoryLocked (BuildAppError ):
Original file line number Diff line number Diff line change 94
94
),
95
95
type = ERROR ,
96
96
),
97
+ Message (
98
+ id = RepositoryError .UNSUPPORTED_VCS ,
99
+ header = _ ("Repository type not suported" ),
100
+ body = _ (
101
+ textwrap .dedent (
102
+ """
103
+ Subversion, Mercurial, and Bazaar are not supported anymore.
104
+ Read more about this deprecation in <a href="https://about.readthedocs.com/blog/2024/02/drop-support-for-subversion-mercurial-bazaar/">our blog</a>.
105
+ """
106
+ ).strip (),
107
+ ),
108
+ type = ERROR ,
109
+ ),
97
110
Message (
98
111
id = ProjectConfigurationError .NOT_FOUND ,
99
112
header = _ ("Sphinx configuration file is missing" ),
You can’t perform that action at this time.
0 commit comments