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