Mercurial > kallithea
changeset 4737:939e797c13c4
hg: drop support for hg web.hidden
Kallithea is not hgweb and should not try to support hgweb config options.
If someone wants to hide repos, they should just remove all access to them.
(_If_ Kallithea should support some kind of more thorough repo hiding, it
should be implemented differently: The hidden repos should not be in the
database and should thus instead be excluded when scanning for repos.)
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Tue, 06 Jan 2015 00:54:36 +0100 |
parents | 72bf89475004 |
children | aab03e1449b4 |
files | kallithea/lib/dbmigrate/schema/db_1_2_0.py kallithea/lib/dbmigrate/schema/db_1_3_0.py kallithea/lib/dbmigrate/schema/db_1_4_0.py kallithea/lib/dbmigrate/schema/db_1_5_0.py kallithea/lib/dbmigrate/schema/db_1_5_2.py kallithea/lib/dbmigrate/schema/db_1_6_0.py kallithea/lib/dbmigrate/schema/db_1_7_0.py kallithea/lib/dbmigrate/schema/db_1_8_0.py kallithea/lib/dbmigrate/schema/db_2_0_0.py kallithea/lib/dbmigrate/schema/db_2_0_1.py kallithea/lib/dbmigrate/schema/db_2_0_2.py kallithea/lib/dbmigrate/schema/db_2_1_0.py kallithea/lib/dbmigrate/schema/db_2_2_0.py kallithea/lib/dbmigrate/schema/db_2_2_3.py kallithea/lib/vcs/backends/hg/repository.py kallithea/model/db.py |
diffstat | 16 files changed, 0 insertions(+), 49 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/lib/dbmigrate/schema/db_1_2_0.py Tue Jan 06 00:54:36 2015 +0100 +++ b/kallithea/lib/dbmigrate/schema/db_1_2_0.py Tue Jan 06 00:54:36 2015 +0100 @@ -711,9 +711,6 @@ repo = backend(safe_str(repo_full_path), create=False, baseui=self._ui) - # skip hidden web repository - if repo._get_hidden(): - return else: repo = backend(repo_full_path, create=False)
--- a/kallithea/lib/dbmigrate/schema/db_1_3_0.py Tue Jan 06 00:54:36 2015 +0100 +++ b/kallithea/lib/dbmigrate/schema/db_1_3_0.py Tue Jan 06 00:54:36 2015 +0100 @@ -729,9 +729,6 @@ repo = backend(safe_str(repo_full_path), create=False, baseui=self._ui) - # skip hidden web repository - if repo._get_hidden(): - return else: repo = backend(repo_full_path, create=False)
--- a/kallithea/lib/dbmigrate/schema/db_1_4_0.py Tue Jan 06 00:54:36 2015 +0100 +++ b/kallithea/lib/dbmigrate/schema/db_1_4_0.py Tue Jan 06 00:54:36 2015 +0100 @@ -990,9 +990,6 @@ repo = backend(safe_str(repo_full_path), create=False, baseui=self._ui) - # skip hidden web repository - if repo._get_hidden(): - return else: repo = backend(repo_full_path, create=False)
--- a/kallithea/lib/dbmigrate/schema/db_1_5_0.py Tue Jan 06 00:54:36 2015 +0100 +++ b/kallithea/lib/dbmigrate/schema/db_1_5_0.py Tue Jan 06 00:54:36 2015 +0100 @@ -1009,9 +1009,6 @@ repo = backend(safe_str(repo_full_path), create=False, baseui=self._ui) - # skip hidden web repository - if repo._get_hidden(): - return else: repo = backend(repo_full_path, create=False)
--- a/kallithea/lib/dbmigrate/schema/db_1_5_2.py Tue Jan 06 00:54:36 2015 +0100 +++ b/kallithea/lib/dbmigrate/schema/db_1_5_2.py Tue Jan 06 00:54:36 2015 +0100 @@ -1130,9 +1130,6 @@ repo = backend(safe_str(repo_full_path), create=False, baseui=self._ui) - # skip hidden web repository - if repo._get_hidden(): - return else: repo = backend(repo_full_path, create=False)
--- a/kallithea/lib/dbmigrate/schema/db_1_6_0.py Tue Jan 06 00:54:36 2015 +0100 +++ b/kallithea/lib/dbmigrate/schema/db_1_6_0.py Tue Jan 06 00:54:36 2015 +0100 @@ -1206,9 +1206,6 @@ repo = backend(safe_str(repo_full_path), create=False, baseui=self._ui) - # skip hidden web repository - if repo._get_hidden(): - return else: repo = backend(repo_full_path, create=False)
--- a/kallithea/lib/dbmigrate/schema/db_1_7_0.py Tue Jan 06 00:54:36 2015 +0100 +++ b/kallithea/lib/dbmigrate/schema/db_1_7_0.py Tue Jan 06 00:54:36 2015 +0100 @@ -1223,9 +1223,6 @@ repo = backend(safe_str(repo_full_path), create=False, baseui=self._ui) - # skip hidden web repository - if repo._get_hidden(): - return else: repo = backend(repo_full_path, create=False)
--- a/kallithea/lib/dbmigrate/schema/db_1_8_0.py Tue Jan 06 00:54:36 2015 +0100 +++ b/kallithea/lib/dbmigrate/schema/db_1_8_0.py Tue Jan 06 00:54:36 2015 +0100 @@ -1253,9 +1253,6 @@ repo = backend(safe_str(repo_full_path), create=False, baseui=self._ui) - # skip hidden web repository - if repo._get_hidden(): - return else: repo = backend(repo_full_path, create=False)
--- a/kallithea/lib/dbmigrate/schema/db_2_0_0.py Tue Jan 06 00:54:36 2015 +0100 +++ b/kallithea/lib/dbmigrate/schema/db_2_0_0.py Tue Jan 06 00:54:36 2015 +0100 @@ -1310,9 +1310,6 @@ repo = backend(safe_str(repo_full_path), create=False, baseui=self._ui) - # skip hidden web repository - if repo._get_hidden(): - return else: repo = backend(repo_full_path, create=False)
--- a/kallithea/lib/dbmigrate/schema/db_2_0_1.py Tue Jan 06 00:54:36 2015 +0100 +++ b/kallithea/lib/dbmigrate/schema/db_2_0_1.py Tue Jan 06 00:54:36 2015 +0100 @@ -1309,9 +1309,6 @@ repo = backend(safe_str(repo_full_path), create=False, baseui=self._ui) - # skip hidden web repository - if repo._get_hidden(): - return else: repo = backend(repo_full_path, create=False)
--- a/kallithea/lib/dbmigrate/schema/db_2_0_2.py Tue Jan 06 00:54:36 2015 +0100 +++ b/kallithea/lib/dbmigrate/schema/db_2_0_2.py Tue Jan 06 00:54:36 2015 +0100 @@ -1329,9 +1329,6 @@ repo = backend(safe_str(repo_full_path), create=False, baseui=self._ui) - # skip hidden web repository - if repo._get_hidden(): - return else: repo = backend(repo_full_path, create=False)
--- a/kallithea/lib/dbmigrate/schema/db_2_1_0.py Tue Jan 06 00:54:36 2015 +0100 +++ b/kallithea/lib/dbmigrate/schema/db_2_1_0.py Tue Jan 06 00:54:36 2015 +0100 @@ -1368,9 +1368,6 @@ repo = backend(safe_str(repo_full_path), create=False, baseui=self._ui) - # skip hidden web repository - if repo._get_hidden(): - return else: repo = backend(repo_full_path, create=False)
--- a/kallithea/lib/dbmigrate/schema/db_2_2_0.py Tue Jan 06 00:54:36 2015 +0100 +++ b/kallithea/lib/dbmigrate/schema/db_2_2_0.py Tue Jan 06 00:54:36 2015 +0100 @@ -1414,9 +1414,6 @@ repo = backend(safe_str(repo_full_path), create=False, baseui=self._ui) - # skip hidden web repository - if repo._get_hidden(): - return else: repo = backend(repo_full_path, create=False)
--- a/kallithea/lib/dbmigrate/schema/db_2_2_3.py Tue Jan 06 00:54:36 2015 +0100 +++ b/kallithea/lib/dbmigrate/schema/db_2_2_3.py Tue Jan 06 00:54:36 2015 +0100 @@ -1441,9 +1441,6 @@ repo = backend(safe_str(repo_full_path), create=False, baseui=self._ui) - # skip hidden web repository - if repo._get_hidden(): - return else: repo = backend(repo_full_path, create=False)
--- a/kallithea/lib/vcs/backends/hg/repository.py Tue Jan 06 00:54:36 2015 +0100 +++ b/kallithea/lib/vcs/backends/hg/repository.py Tue Jan 06 00:54:36 2015 +0100 @@ -417,9 +417,6 @@ else: return os.stat(st_path).st_mtime - def _get_hidden(self): - return self._repo.ui.configbool("web", "hidden", untrusted=True) - def _get_revision(self, revision): """ Gets an ID revision given as str. This will always return a fill
--- a/kallithea/model/db.py Tue Jan 06 00:54:36 2015 +0100 +++ b/kallithea/model/db.py Tue Jan 06 00:54:36 2015 +0100 @@ -1447,12 +1447,8 @@ return if alias == 'hg': - repo = backend(safe_str(repo_full_path), create=False, baseui=self._ui) - # skip hidden web repository - if repo._get_hidden(): - return else: repo = backend(repo_full_path, create=False)