##// END OF EJS Templates
docs/usage: reword and extend section on changelog
Thomas De Schampheleire -
r4966:543bf62d default
parent child Browse files
Show More
@@ -1,160 +1,177 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 File view: follow current branch
30 File view: follow current branch
31 --------------------------------
31 --------------------------------
32
32
33 In the file view, left and right arrows allow to jump to the previous and next
33 In the file view, left and right arrows allow to jump to the previous and next
34 revision. Depending on the way revisions were created in the repository, this
34 revision. Depending on the way revisions were created in the repository, this
35 could jump to a different branch. When the checkbox ``Follow current branch``
35 could jump to a different branch. When the checkbox ``Follow current branch``
36 is checked, these arrows will only jump to revisions on the same branch as the
36 is checked, these arrows will only jump to revisions on the same branch as the
37 currently visible revision. So for example, if someone is viewing files in the
37 currently visible revision. So for example, if someone is viewing files in the
38 ``beta`` branch and marks the `Follow current branch` checkbox, the < and >
38 ``beta`` branch and marks the `Follow current branch` checkbox, the < and >
39 arrows will only show revisions on the ``beta`` branch.
39 arrows will only show revisions on the ``beta`` branch.
40
40
41
41
42 Compare view from changelog
42 Changelog features
43 ---------------------------
43 ------------------
44
45 The core feature of a repository's ``changelog`` page is to show the revisions
46 in a repository. However, there are several other features available from the
47 changelog.
48
49 Branch filter
50 By default, the changelog shows revisions from all branches in the
51 repository. Use the branch filter to restrict to a given branch.
44
52
45 Checkboxes in the compare view allow users to view a combined compare
53 Viewing a changeset
46 view. You can only show the range between the first and last checkbox
54 A particular changeset can be opened by clicking on either the changeset
47 (no cherry pick). Clicking more than one checkbox will activate a
55 hash or the commit message, or by ticking the checkbox and clicking the
48 link at the top saying ``Show selected changesets <from-rev> ->
56 ``Show selected changeset`` button at the top.
49 <to-rev>``. Clicking this will activate the compare view. In this view
50 it is also possible to switch to combined compare.
51
57
52 Compare view is also available from the journal on pushes having more than
58 Viewing all changes between two changesets
53 one changeset.
59 To get a list of all changesets between two selected changesets, along with
60 the changes in each one of them, tick the checkboxes of the first and
61 last changeset in the desired range and click the ``Show selected changesets``
62 button at the top. You can only show the range between the first and last
63 checkbox (no cherry-picking).
54
64
65 From that page, you can proceed to viewing the overall delta between the
66 selected changesets, by clicking the ``Compare revisions`` button.
67
68 Creating a pull request
69 You can create a new pull request for the changes of a particular changeset
70 (and its ancestors) by selecting it and clicking the ``Open new pull request
71 for selected changesets`` button.
55
72
56 Non changeable repository urls
73 Non changeable repository urls
57 ------------------------------
74 ------------------------------
58
75
59 Due to the complicated nature of repository grouping, URLs of repositories
76 Due to the complicated nature of repository grouping, URLs of repositories
60 can often change.
77 can often change.
61
78
62 example::
79 example::
63
80
64 #before
81 #before
65 http://server.com/repo_name
82 http://server.com/repo_name
66 # after insertion to test_group group the url will be
83 # after insertion to test_group group the url will be
67 http://server.com/test_group/repo_name
84 http://server.com/test_group/repo_name
68
85
69 This can be an issue for build systems and any other hardcoded scripts, moving
86 This can be an issue for build systems and any other hardcoded scripts, moving
70 a repository to a group leads to a need for changing external systems. To
87 a repository to a group leads to a need for changing external systems. To
71 overcome this Kallithea introduces a non-changable replacement URL. It's
88 overcome this Kallithea introduces a non-changable replacement URL. It's
72 simply a repository ID prefixed with ``_``. The above URLs are also accessible as::
89 simply a repository ID prefixed with ``_``. The above URLs are also accessible as::
73
90
74 http://server.com/_<ID>
91 http://server.com/_<ID>
75
92
76 Since IDs are always the same, moving the repository will not affect
93 Since IDs are always the same, moving the repository will not affect
77 such a URL. the ``_<ID>`` syntax can be used anywhere in the system so
94 such a URL. the ``_<ID>`` syntax can be used anywhere in the system so
78 URLs with ``repo_name`` for changelogs and files can be exchanged
95 URLs with ``repo_name`` for changelogs and files can be exchanged
79 with the ``_<ID>`` syntax.
96 with the ``_<ID>`` syntax.
80
97
81
98
82 E-mail notifications
99 E-mail notifications
83 --------------------
100 --------------------
84
101
85 When the administrator correctly specified the e-mail settings in the Kallithea
102 When the administrator correctly specified the e-mail settings in the Kallithea
86 configuration file, Kallithea will send e-mails on user registration and when
103 configuration file, Kallithea will send e-mails on user registration and when
87 errors occur.
104 errors occur.
88
105
89 Mails are also sent for comments on changesets. In this case, an e-mail is sent
106 Mails are also sent for comments on changesets. In this case, an e-mail is sent
90 to the committer of the changeset (if known to Kallithea), to all reviewers of
107 to the committer of the changeset (if known to Kallithea), to all reviewers of
91 the pull request (if applicable) and to all people mentioned in the comment
108 the pull request (if applicable) and to all people mentioned in the comment
92 using @mention notation.
109 using @mention notation.
93
110
94
111
95 Trending source files
112 Trending source files
96 ---------------------
113 ---------------------
97
114
98 Trending source files are calculated based on a pre-defined dict of known
115 Trending source files are calculated based on a pre-defined dict of known
99 types and extensions. If you miss some extension or would like to scan some
116 types and extensions. If you miss some extension or would like to scan some
100 custom files, it is possible to add new types in the ``LANGUAGES_EXTENSIONS_MAP`` dict
117 custom files, it is possible to add new types in the ``LANGUAGES_EXTENSIONS_MAP`` dict
101 located in ``kallithea/lib/celerylib/tasks.py``.
118 located in ``kallithea/lib/celerylib/tasks.py``.
102
119
103
120
104 Cloning remote repositories
121 Cloning remote repositories
105 ---------------------------
122 ---------------------------
106
123
107 Kallithea has the ability to clone remote repos from given remote locations.
124 Kallithea has the ability to clone remote repos from given remote locations.
108 Currently it supports the following options:
125 Currently it supports the following options:
109
126
110 - hg -> hg clone
127 - hg -> hg clone
111 - svn -> hg clone
128 - svn -> hg clone
112 - git -> git clone
129 - git -> git clone
113
130
114
131
115 .. note:: svn -> hg cloning requires tge ``hgsubversion`` library to be installed.
132 .. note:: svn -> hg cloning requires tge ``hgsubversion`` library to be installed.
116
133
117 If you need to clone repositories that are protected via basic auth, you
134 If you need to clone repositories that are protected via basic auth, you
118 might pass the url with stored credentials inside, e.g.,
135 might pass the url with stored credentials inside, e.g.,
119 ``http://user:passw@remote.server/repo``, Kallithea will try to login and clone
136 ``http://user:passw@remote.server/repo``, Kallithea will try to login and clone
120 using the given credentials. Please take note that they will be stored as
137 using the given credentials. Please take note that they will be stored as
121 plaintext inside the database. Kallithea will remove auth info when showing the
138 plaintext inside the database. Kallithea will remove auth info when showing the
122 clone url in summary page.
139 clone url in summary page.
123
140
124
141
125
142
126 Specific features configurable in the Admin settings
143 Specific features configurable in the Admin settings
127 ----------------------------------------------------
144 ----------------------------------------------------
128
145
129 In general, the Admin settings should be self-explanatory and will not be
146 In general, the Admin settings should be self-explanatory and will not be
130 described in more detail in this documentation. However, there are a few
147 described in more detail in this documentation. However, there are a few
131 features that merit further explanation.
148 features that merit further explanation.
132
149
133 Repository extra fields
150 Repository extra fields
134 ~~~~~~~~~~~~~~~~~~~~~~~
151 ~~~~~~~~~~~~~~~~~~~~~~~
135
152
136 In the `Visual` tab, there is an option `Use repository extra
153 In the `Visual` tab, there is an option `Use repository extra
137 fields`, which allows to set custom fields for each repository in the system.
154 fields`, which allows to set custom fields for each repository in the system.
138 Each new field consists of 3 attributes: ``field key``, ``field label``,
155 Each new field consists of 3 attributes: ``field key``, ``field label``,
139 ``field description``.
156 ``field description``.
140
157
141 Example usage of such fields would be to define company-specific information
158 Example usage of such fields would be to define company-specific information
142 into repositories, e.g., defining a ``repo_manager`` key that would give info
159 into repositories, e.g., defining a ``repo_manager`` key that would give info
143 about a manager of each repository. There's no limit for adding custom fields.
160 about a manager of each repository. There's no limit for adding custom fields.
144 Newly created fields are accessible via the API.
161 Newly created fields are accessible via the API.
145
162
146 Meta-Tagging
163 Meta-Tagging
147 ~~~~~~~~~~~~
164 ~~~~~~~~~~~~
148
165
149 In the `Visual` tab, option `Stylify recognised meta tags` will cause Kallithea
166 In the `Visual` tab, option `Stylify recognised meta tags` will cause Kallithea
150 to turn certain meta-tags, detected in repository and repository group
167 to turn certain meta-tags, detected in repository and repository group
151 descriptions, into colored tags. Currently recognised tags are::
168 descriptions, into colored tags. Currently recognised tags are::
152
169
153 [featured]
170 [featured]
154 [stale]
171 [stale]
155 [dead]
172 [dead]
156 [lang => lang]
173 [lang => lang]
157 [license => License]
174 [license => License]
158 [requires => Repo]
175 [requires => Repo]
159 [recommends => Repo]
176 [recommends => Repo]
160 [see => URI]
177 [see => URI]
General Comments 0
You need to be logged in to leave comments. Login now