Show More
@@ -1,156 +1,157 b'' | |||||
1 | .. _general: |
|
1 | .. _general: | |
2 |
|
2 | |||
3 | ======================= |
|
3 | ======================= | |
4 | General Kallithea usage |
|
4 | General Kallithea usage | |
5 | ======================= |
|
5 | ======================= | |
6 |
|
6 | |||
7 |
|
7 | |||
8 | Repository deleting |
|
8 | Repository deleting | |
9 | ------------------- |
|
9 | ------------------- | |
10 |
|
10 | |||
11 | Currently when an admin or owner deletes a repository, Kallithea does |
|
11 | Currently when an admin or owner deletes a repository, Kallithea does | |
12 | not physically delete said repository from the filesystem, but instead |
|
12 | not physically delete said repository from the filesystem, but instead | |
13 | renames it in a special way so that it is not possible to push, clone |
|
13 | renames it in a special way so that it is not possible to push, clone | |
14 | or access the repository. |
|
14 | or access the repository. | |
15 |
|
15 | |||
16 | There is a special command for cleaning up such archived repos:: |
|
16 | There is a special command for cleaning up such archived repos:: | |
17 |
|
17 | |||
18 | paster cleanup-repos --older-than=30d my.ini |
|
18 | paster cleanup-repos --older-than=30d my.ini | |
19 |
|
19 | |||
20 | This command scans for archived repositories that are older than |
|
20 | This command scans for archived repositories that are older than | |
21 | 30 days, displays them, and asks if you want to delete them (unless given |
|
21 | 30 days, displays them, and asks if you want to delete them (unless given | |
22 | the ``--dont-ask`` flag). If you host a large amount of repositories with |
|
22 | the ``--dont-ask`` flag). If you host a large amount of repositories with | |
23 | forks that are constantly being deleted, it is recommended that you run this |
|
23 | forks that are constantly being deleted, it is recommended that you run this | |
24 | command via crontab. |
|
24 | command via crontab. | |
25 |
|
25 | |||
26 | It is worth noting that even if someone is given administrative access to |
|
26 | It is worth noting that even if someone is given administrative access to | |
27 | Kallithea and deletes a repository, you can easily restore such an action by |
|
27 | Kallithea and deletes a repository, you can easily restore such an action by | |
28 | renaming the repository directory, removing the ``rm__<date>`` prefix. |
|
28 | renaming the repository directory, removing the ``rm__<date>`` prefix. | |
29 |
|
29 | |||
30 | Follow current branch in file view |
|
30 | Follow current branch in file view | |
31 | ---------------------------------- |
|
31 | ---------------------------------- | |
32 |
|
32 | |||
33 | In file view when this checkbox is checked the << and >> arrows will jump |
|
33 | In file view when this checkbox is checked the << and >> arrows will jump | |
34 | to changesets within the same branch currently being viewed. So for example |
|
34 | to changesets within the same branch currently being viewed. So for example | |
35 | if someone is viewing files in the ``beta`` branch and marks the `follow current branch` |
|
35 | if someone is viewing files in the ``beta`` branch and marks the `follow current branch` | |
36 | checkbox the << and >> buttons will only show revisions for the `'beta`` branch. |
|
36 | checkbox the << and >> buttons will only show revisions for the `'beta`` branch. | |
37 |
|
37 | |||
38 |
|
38 | |||
39 | Compare view from changelog |
|
39 | Compare view from changelog | |
40 | --------------------------- |
|
40 | --------------------------- | |
41 |
|
41 | |||
42 | Checkboxes in the compare view allow users to view a combined compare |
|
42 | Checkboxes in the compare view allow users to view a combined compare | |
43 | view. You can only show the range between the first and last checkbox |
|
43 | view. You can only show the range between the first and last checkbox | |
44 | (no cherry pick). Clicking more than one checkbox will activate a |
|
44 | (no cherry pick). Clicking more than one checkbox will activate a | |
45 | link at the top saying ``Show selected changesets <from-rev> -> |
|
45 | link at the top saying ``Show selected changesets <from-rev> -> | |
46 | <to-rev>``. Clicking this will activate the compare view. In this view |
|
46 | <to-rev>``. Clicking this will activate the compare view. In this view | |
47 | it is also possible to switch to combined compare. |
|
47 | it is also possible to switch to combined compare. | |
48 |
|
48 | |||
49 | Compare view is also available from the journal on pushes having more than |
|
49 | Compare view is also available from the journal on pushes having more than | |
50 | one changeset. |
|
50 | one changeset. | |
51 |
|
51 | |||
52 |
|
52 | |||
53 | Non changeable repository urls |
|
53 | Non changeable repository urls | |
54 | ------------------------------ |
|
54 | ------------------------------ | |
55 |
|
55 | |||
56 | Due to the complicated nature of repository grouping, URLs of repositories |
|
56 | Due to the complicated nature of repository grouping, URLs of repositories | |
57 | can often change. |
|
57 | can often change. | |
58 |
|
58 | |||
59 | example:: |
|
59 | example:: | |
60 |
|
60 | |||
61 | #before |
|
61 | #before | |
62 | http://server.com/repo_name |
|
62 | http://server.com/repo_name | |
63 | # after insertion to test_group group the url will be |
|
63 | # after insertion to test_group group the url will be | |
64 | http://server.com/test_group/repo_name |
|
64 | http://server.com/test_group/repo_name | |
65 |
|
65 | |||
66 | This can be an issue for build systems and any other hardcoded scripts, moving |
|
66 | This can be an issue for build systems and any other hardcoded scripts, moving | |
67 | a repository to a group leads to a need for changing external systems. To |
|
67 | a repository to a group leads to a need for changing external systems. To | |
68 | overcome this Kallithea introduces a non-changable replacement URL. It's |
|
68 | overcome this Kallithea introduces a non-changable replacement URL. It's | |
69 | simply a repository ID prefixed with ``_``. The above URLs are also accessible as:: |
|
69 | simply a repository ID prefixed with ``_``. The above URLs are also accessible as:: | |
70 |
|
70 | |||
71 | http://server.com/_<ID> |
|
71 | http://server.com/_<ID> | |
72 |
|
72 | |||
73 | Since IDs are always the same, moving the repository will not affect |
|
73 | Since IDs are always the same, moving the repository will not affect | |
74 | such a URL. the ``_<ID>`` syntax can be used anywhere in the system so |
|
74 | such a URL. the ``_<ID>`` syntax can be used anywhere in the system so | |
75 | URLs with ``repo_name`` for changelogs and files can be exchanged |
|
75 | URLs with ``repo_name`` for changelogs and files can be exchanged | |
76 | with the ``_<ID>`` syntax. |
|
76 | with the ``_<ID>`` syntax. | |
77 |
|
77 | |||
78 |
|
78 | |||
79 | Mailing |
|
79 | E-mail notifications | |
80 | ------- |
|
80 | -------------------- | |
81 |
|
81 | |||
82 |
When the administrator co |
|
82 | When the administrator correctly specified the e-mail settings in the Kallithea | |
83 |
Kallithea will send mails on user registration |
|
83 | configuration file, Kallithea will send e-mails on user registration and when | |
84 | errors occur. |
|
84 | errors occur. | |
85 |
|
85 | |||
86 | Mails are also sent for code comments. If someone comments on a changeset |
|
86 | Mails are also sent for comments on changesets. In this case, an e-mail is sent | |
87 | mail is sent to all participants, the person who commited the changeset |
|
87 | to the committer of the changeset (if known to Kallithea), to all reviewers of | |
88 |
|
|
88 | the pull request (if applicable) and to all people mentioned in the comment | |
|
89 | using @mention notation. | |||
89 |
|
90 | |||
90 |
|
91 | |||
91 | Trending source files |
|
92 | Trending source files | |
92 | --------------------- |
|
93 | --------------------- | |
93 |
|
94 | |||
94 | Trending source files are calculated based on a pre-defined dict of known |
|
95 | Trending source files are calculated based on a pre-defined dict of known | |
95 | types and extensions. If you miss some extension or would like to scan some |
|
96 | types and extensions. If you miss some extension or would like to scan some | |
96 | custom files, it is possible to add new types in the ``LANGUAGES_EXTENSIONS_MAP`` dict |
|
97 | custom files, it is possible to add new types in the ``LANGUAGES_EXTENSIONS_MAP`` dict | |
97 | located in ``kallithea/lib/celerylib/tasks.py``. |
|
98 | located in ``kallithea/lib/celerylib/tasks.py``. | |
98 |
|
99 | |||
99 |
|
100 | |||
100 | Cloning remote repositories |
|
101 | Cloning remote repositories | |
101 | --------------------------- |
|
102 | --------------------------- | |
102 |
|
103 | |||
103 | Kallithea has the ability to clone remote repos from given remote locations. |
|
104 | Kallithea has the ability to clone remote repos from given remote locations. | |
104 | Currently it supports the following options: |
|
105 | Currently it supports the following options: | |
105 |
|
106 | |||
106 | - hg -> hg clone |
|
107 | - hg -> hg clone | |
107 | - svn -> hg clone |
|
108 | - svn -> hg clone | |
108 | - git -> git clone |
|
109 | - git -> git clone | |
109 |
|
110 | |||
110 |
|
111 | |||
111 | .. note:: svn -> hg cloning requires tge ``hgsubversion`` library to be installed. |
|
112 | .. note:: svn -> hg cloning requires tge ``hgsubversion`` library to be installed. | |
112 |
|
113 | |||
113 | If you need to clone repositories that are protected via basic auth, you |
|
114 | If you need to clone repositories that are protected via basic auth, you | |
114 | might pass the url with stored credentials inside, e.g., |
|
115 | might pass the url with stored credentials inside, e.g., | |
115 | ``http://user:passw@remote.server/repo``, Kallithea will try to login and clone |
|
116 | ``http://user:passw@remote.server/repo``, Kallithea will try to login and clone | |
116 | using the given credentials. Please take note that they will be stored as |
|
117 | using the given credentials. Please take note that they will be stored as | |
117 | plaintext inside the database. Kallithea will remove auth info when showing the |
|
118 | plaintext inside the database. Kallithea will remove auth info when showing the | |
118 | clone url in summary page. |
|
119 | clone url in summary page. | |
119 |
|
120 | |||
120 |
|
121 | |||
121 |
|
122 | |||
122 | Specific features configurable in the Admin settings |
|
123 | Specific features configurable in the Admin settings | |
123 | ---------------------------------------------------- |
|
124 | ---------------------------------------------------- | |
124 |
|
125 | |||
125 | In general, the Admin settings should be self-explanatory and will not be |
|
126 | In general, the Admin settings should be self-explanatory and will not be | |
126 | described in more detail in this documentation. However, there are a few |
|
127 | described in more detail in this documentation. However, there are a few | |
127 | features that merit further explanation. |
|
128 | features that merit further explanation. | |
128 |
|
129 | |||
129 | Repository extra fields |
|
130 | Repository extra fields | |
130 | ~~~~~~~~~~~~~~~~~~~~~~~ |
|
131 | ~~~~~~~~~~~~~~~~~~~~~~~ | |
131 |
|
132 | |||
132 | In the `Visual` tab, there is an option `Use repository extra |
|
133 | In the `Visual` tab, there is an option `Use repository extra | |
133 | fields`, which allows to set custom fields for each repository in the system. |
|
134 | fields`, which allows to set custom fields for each repository in the system. | |
134 | Each new field consists of 3 attributes: ``field key``, ``field label``, |
|
135 | Each new field consists of 3 attributes: ``field key``, ``field label``, | |
135 | ``field description``. |
|
136 | ``field description``. | |
136 |
|
137 | |||
137 | Example usage of such fields would be to define company-specific information |
|
138 | Example usage of such fields would be to define company-specific information | |
138 | into repositories, e.g., defining a ``repo_manager`` key that would give info |
|
139 | into repositories, e.g., defining a ``repo_manager`` key that would give info | |
139 | about a manager of each repository. There's no limit for adding custom fields. |
|
140 | about a manager of each repository. There's no limit for adding custom fields. | |
140 | Newly created fields are accessible via the API. |
|
141 | Newly created fields are accessible via the API. | |
141 |
|
142 | |||
142 | Meta-Tagging |
|
143 | Meta-Tagging | |
143 | ~~~~~~~~~~~~ |
|
144 | ~~~~~~~~~~~~ | |
144 |
|
145 | |||
145 | In the `Visual` tab, option `Stylify recognised meta tags` will cause Kallithea |
|
146 | In the `Visual` tab, option `Stylify recognised meta tags` will cause Kallithea | |
146 | to turn certain meta-tags, detected in repository and repository group |
|
147 | to turn certain meta-tags, detected in repository and repository group | |
147 | descriptions, into colored tags. Currently recognised tags are:: |
|
148 | descriptions, into colored tags. Currently recognised tags are:: | |
148 |
|
149 | |||
149 | [featured] |
|
150 | [featured] | |
150 | [stale] |
|
151 | [stale] | |
151 | [dead] |
|
152 | [dead] | |
152 | [lang => lang] |
|
153 | [lang => lang] | |
153 | [license => License] |
|
154 | [license => License] | |
154 | [requires => Repo] |
|
155 | [requires => Repo] | |
155 | [recommends => Repo] |
|
156 | [recommends => Repo] | |
156 | [see => URI] |
|
157 | [see => URI] |
General Comments 0
You need to be logged in to leave comments.
Login now