Show More
@@ -1,33 +1,35 b'' | |||||
1 | # -*- coding: utf-8 -*- |
|
1 | # -*- coding: utf-8 -*- | |
2 |
|
2 | |||
3 | # Copyright (C) 2014-2016 RhodeCode GmbH |
|
3 | # Copyright (C) 2014-2016 RhodeCode GmbH | |
4 | # |
|
4 | # | |
5 | # This program is free software: you can redistribute it and/or modify |
|
5 | # This program is free software: you can redistribute it and/or modify | |
6 | # it under the terms of the GNU Affero General Public License, version 3 |
|
6 | # it under the terms of the GNU Affero General Public License, version 3 | |
7 | # (only), as published by the Free Software Foundation. |
|
7 | # (only), as published by the Free Software Foundation. | |
8 | # |
|
8 | # | |
9 | # This program is distributed in the hope that it will be useful, |
|
9 | # This program is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | # GNU General Public License for more details. |
|
12 | # GNU General Public License for more details. | |
13 | # |
|
13 | # | |
14 | # You should have received a copy of the GNU Affero General Public License |
|
14 | # You should have received a copy of the GNU Affero General Public License | |
15 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
|
15 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | |
16 | # |
|
16 | # | |
17 | # This program is dual-licensed. If you wish to learn more about the |
|
17 | # This program is dual-licensed. If you wish to learn more about the | |
18 | # RhodeCode Enterprise Edition, including its added features, Support services, |
|
18 | # RhodeCode Enterprise Edition, including its added features, Support services, | |
19 | # and proprietary license terms, please see https://rhodecode.com/licenses/ |
|
19 | # and proprietary license terms, please see https://rhodecode.com/licenses/ | |
20 |
|
20 | |||
21 | """ |
|
21 | """ | |
22 | Holds connection for remote server. |
|
22 | Holds connection for remote server. | |
23 | """ |
|
23 | """ | |
24 |
|
24 | |||
25 |
|
25 | |||
26 | def _not_initialized(*args, **kwargs): |
|
26 | def _not_initialized(*args, **kwargs): | |
27 | """Placeholder for objects which have to be initialized first.""" |
|
27 | """Placeholder for objects which have to be initialized first.""" | |
28 | raise Exception("rhodecode.lib.vcs is not yet initialized") |
|
28 | raise Exception( | |
|
29 | "rhodecode.lib.vcs is not yet initialized. " | |||
|
30 | "Make sure `vcs.server` is enabled in your configuration.") | |||
29 |
|
31 | |||
30 | # TODO: figure out a nice default value for these things |
|
32 | # TODO: figure out a nice default value for these things | |
31 | Git = _not_initialized |
|
33 | Git = _not_initialized | |
32 | Hg = _not_initialized |
|
34 | Hg = _not_initialized | |
33 | Svn = _not_initialized |
|
35 | Svn = _not_initialized |
General Comments 0
You need to be logged in to leave comments.
Login now