general.rst
166 lines
| 5.4 KiB
| text/x-rst
|
RstLexer
r1025 | .. _general: | |||
r2095 | ======================= | |||
Bradley M. Kuhn
|
r4192 | General Kallithea usage | ||
r1025 | ======================= | |||
Repository deleting | ||||
r1123 | ------------------- | |||
r1025 | ||||
Bradley M. Kuhn
|
r4192 | Currently when admin/owner deletes a repository, Kallithea does not physically | ||
r1025 | delete a repository from filesystem, it renames it in a special way so it's | |||
not possible to push,clone or access repository. It's worth a notice that, | ||||
Bradley M. Kuhn
|
r4192 | even if someone will be given administrative access to Kallithea and will | ||
r1025 | delete a repository You can easy restore such action by restoring `rm__<date>` | |||
r3335 | from the repository name, and internal repository storage (.hg/.git). There | |||
is also a special command for cleaning such archived repos:: | ||||
paster cleanup-repos --older-than=30d production.ini | ||||
This command will scan for archived repositories that are older than 30d, | ||||
display them and ask if you want to delete them (there's a --dont-ask flag also) | ||||
If you host big amount of repositories with forks that are constantly deleted | ||||
it's recommended that you run such command via crontab. | ||||
r1025 | ||||
Follow current branch in file view | ||||
r1123 | ---------------------------------- | |||
r1025 | ||||
In file view when this checkbox is checked the << and >> arrows will jump | ||||
r1026 | to changesets within the same branch currently viewing. So for example | |||
r1025 | if someone is viewing files at 'beta' branch and marks `follow current branch` | |||
checkbox the << and >> buttons will only show him revisions for 'beta' branch | ||||
Compare view from changelog | ||||
r1123 | --------------------------- | |||
r1025 | ||||
Checkboxes in compare view allow users to view combined compare view. You can | ||||
only show the range between the first and last checkbox (no cherry pick). | ||||
Clicking more than one checkbox will activate a link in top saying | ||||
Mads Kiilerich
|
r3592 | `Show selected changesets <from-rev> -> <to-rev>` clicking this will bring | ||
r3335 | compare view. In this view also it's possible to switch to combined compare. | |||
r1025 | ||||
Compare view is also available from the journal on pushes having more than | ||||
one changeset | ||||
r1813 | Non changeable repository urls | |||
------------------------------ | ||||
Due to complicated nature of repository grouping, often urls of repositories | ||||
can change. | ||||
example:: | ||||
r3224 | ||||
r1813 | #before | |||
http://server.com/repo_name | ||||
# after insertion to test_group group the url will be | ||||
http://server.com/test_group/repo_name | ||||
r3224 | ||||
r1813 | This can be an issue for build systems and any other hardcoded scripts, moving | |||
r3224 | repository to a group leads to a need for changing external systems. To | |||
Bradley M. Kuhn
|
r4192 | overcome this Kallithea introduces a non changable replacement url. It's | ||
r1813 | simply an repository ID prefixed with `_` above urls are also accessible as:: | |||
http://server.com/_<ID> | ||||
r3224 | ||||
r1813 | Since ID are always the same moving the repository will not affect such url. | |||
r3224 | the _<ID> syntax can be used anywhere in the system so urls with repo_name | |||
r1813 | for changelogs, files and other can be exchanged with _<ID> syntax. | |||
r1025 | Mailing | |||
r1123 | ------- | |||
r1025 | ||||
When administrator will fill up the mailing settings in .ini files | ||||
Bradley M. Kuhn
|
r4192 | Kallithea will send mails on user registration, or when Kallithea errors occur | ||
r1025 | on errors the mails will have a detailed traceback of error. | |||
r2105 | Mails are also sent for code comments. If someone comments on a changeset | |||
r3224 | mail is sent to all participants, the person who commited the changeset | |||
Bradley M. Kuhn
|
r4192 | (if present in Kallithea), and to all people mentioned with @mention system. | ||
r2105 | ||||
r1025 | Trending source files | |||
r1123 | --------------------- | |||
r1025 | ||||
Trending source files are calculated based on pre defined dict of known | ||||
types and extensions. If You miss some extension or Would like to scan some | ||||
custom files it's possible to add new types in `LANGUAGES_EXTENSIONS_MAP` dict | ||||
Bradley M. Kuhn
|
r4186 | located in `/kallithea/lib/celerylib/tasks.py` | ||
r2706 | ||||
Cloning remote repositories | ||||
--------------------------- | ||||
Bradley M. Kuhn
|
r4192 | Kallithea has an ability to clone remote repos from given remote locations. | ||
r2706 | Currently it support following options: | |||
- hg -> hg clone | ||||
- svn -> hg clone | ||||
- git -> git clone | ||||
.. note:: | ||||
r3224 | ||||
r2706 | - *`svn -> hg` cloning requires `hgsubversion` library to be installed.* | |||
If you need to clone repositories that are protected via basic auth, you | ||||
r3224 | might pass the url with stored credentials inside eg. | |||
Bradley M. Kuhn
|
r4192 | `http://user:passw@remote.server/repo`, Kallithea will try to login and clone | ||
r2706 | using given credentials. Please take a note that they will be stored as | |||
Bradley M. Kuhn
|
r4192 | plaintext inside the database. Kallithea will remove auth info when showing the | ||
r2706 | clone url in summary page. | |||
r3770 | ||||
Visual settings in admin pannel | ||||
------------------------------- | ||||
Bradley M. Kuhn
|
r4192 | Visualisation settings in Kallithea settings view are extra customizations | ||
r3770 | of server behavior. There are 3 main section in the settings. | |||
General | ||||
~~~~~~~ | ||||
r3777 | ||||
r3770 | `Use repository extra fields` option allows to set a custom fields for each | |||
repository in the system. Each new field consists of 3 attributes `field key`, | ||||
`field label`, `field description`. Example usage of such fields would be to | ||||
define company specific information into repositories eg. defining repo_manager | ||||
key that would add give info about a manager of each repository. There's no | ||||
limit for adding custom fields. Newly created fields are accessible via API. | ||||
Bradley M. Kuhn
|
r4192 | `Show Kallithea version` option toggles displaying exact Kallithea version in | ||
r3939 | the footer | |||
Dashboard items | ||||
~~~~~~~~~~~~~~~ | ||||
Number if items in main page dashboard before pagination is displayed | ||||
r3770 | ||||
Icons | ||||
~~~~~ | ||||
Show public repo icon / Show private repo icon on repositories - defines if | ||||
public/private icons should be shown in the UI. | ||||
Meta-Tagging | ||||
~~~~~~~~~~~~ | ||||
Bradley M. Kuhn
|
r4192 | With this option enabled, special metatags that are recognisible by Kallithea | ||
r3770 | will be turned into colored tags. Currently available tags are:: | |||
[featured] | ||||
[stale] | ||||
[dead] | ||||
[lang => lang] | ||||
[license => License] | ||||
[requires => Repo] | ||||
[recommends => Repo] | ||||
[see => URI] | ||||