Mercurial > public > src > rhodecode
annotate docs/usage/git_support.rst @ 2427:18d34a56a736 beta
fix for issue #417, git execution was broken on windows for certain commands.
Added git as requirement into readme.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Tue, 22 May 2012 20:12:58 +0200 |
parents | 17c9393e9645 |
children |
rev | line source |
---|---|
2111
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
1 .. _git_support: |
868 | 2 |
2191 | 3 =========== |
2111
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
4 GIT support |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
5 =========== |
868 | 6 |
7 | |
2427
18d34a56a736
fix for issue #417, git execution was broken on windows for certain commands.
Marcin Kuzminski <marcin@python-works.com>
parents:
2191
diff
changeset
|
8 Git support in RhodeCode 1.3 was enabled by default. You need to have a git |
18d34a56a736
fix for issue #417, git execution was broken on windows for certain commands.
Marcin Kuzminski <marcin@python-works.com>
parents:
2191
diff
changeset
|
9 client installed on the machine to make git fully work. |
18d34a56a736
fix for issue #417, git execution was broken on windows for certain commands.
Marcin Kuzminski <marcin@python-works.com>
parents:
2191
diff
changeset
|
10 |
2111
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
11 Although There are some limitations on git usage. |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
12 |
2427
18d34a56a736
fix for issue #417, git execution was broken on windows for certain commands.
Marcin Kuzminski <marcin@python-works.com>
parents:
2191
diff
changeset
|
13 - hooks that are executed on pull/push are not *real* hooks, they are |
18d34a56a736
fix for issue #417, git execution was broken on windows for certain commands.
Marcin Kuzminski <marcin@python-works.com>
parents:
2191
diff
changeset
|
14 just emulating the behavior, and are executed **BEFORE** action takes place. |
2111
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
15 - large pushes needs http server with chunked encoding support. |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
16 |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
17 if you plan to use git you need to run RhodeCode with some |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
18 http server that supports chunked encoding which git http protocol uses, |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
19 i recommend using waitress_ or gunicorn_ (linux only) for `paste` wsgi app |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
20 replacement. |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
21 |
2427
18d34a56a736
fix for issue #417, git execution was broken on windows for certain commands.
Marcin Kuzminski <marcin@python-works.com>
parents:
2191
diff
changeset
|
22 To use, simply change change the following in the .ini file:: |
2111
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
23 |
2112
370e995e46c2
fixes in doc about waitress wsgi
Marcin Kuzminski <marcin@python-works.com>
parents:
2111
diff
changeset
|
24 use = egg:Paste#http |
2111
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
25 |
2427
18d34a56a736
fix for issue #417, git execution was broken on windows for certain commands.
Marcin Kuzminski <marcin@python-works.com>
parents:
2191
diff
changeset
|
26 to:: |
2111
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
27 |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
28 use = egg:waitress#main |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
29 |
2427
18d34a56a736
fix for issue #417, git execution was broken on windows for certain commands.
Marcin Kuzminski <marcin@python-works.com>
parents:
2191
diff
changeset
|
30 or:: |
18d34a56a736
fix for issue #417, git execution was broken on windows for certain commands.
Marcin Kuzminski <marcin@python-works.com>
parents:
2191
diff
changeset
|
31 |
18d34a56a736
fix for issue #417, git execution was broken on windows for certain commands.
Marcin Kuzminski <marcin@python-works.com>
parents:
2191
diff
changeset
|
32 use = egg:gunicorn#main |
18d34a56a736
fix for issue #417, git execution was broken on windows for certain commands.
Marcin Kuzminski <marcin@python-works.com>
parents:
2191
diff
changeset
|
33 |
18d34a56a736
fix for issue #417, git execution was broken on windows for certain commands.
Marcin Kuzminski <marcin@python-works.com>
parents:
2191
diff
changeset
|
34 |
2112
370e995e46c2
fixes in doc about waitress wsgi
Marcin Kuzminski <marcin@python-works.com>
parents:
2111
diff
changeset
|
35 And comment out bellow options:: |
2111
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
36 |
2112
370e995e46c2
fixes in doc about waitress wsgi
Marcin Kuzminski <marcin@python-works.com>
parents:
2111
diff
changeset
|
37 threadpool_workers = |
370e995e46c2
fixes in doc about waitress wsgi
Marcin Kuzminski <marcin@python-works.com>
parents:
2111
diff
changeset
|
38 threadpool_max_requests = |
370e995e46c2
fixes in doc about waitress wsgi
Marcin Kuzminski <marcin@python-works.com>
parents:
2111
diff
changeset
|
39 use_threadpool = |
370e995e46c2
fixes in doc about waitress wsgi
Marcin Kuzminski <marcin@python-works.com>
parents:
2111
diff
changeset
|
40 |
370e995e46c2
fixes in doc about waitress wsgi
Marcin Kuzminski <marcin@python-works.com>
parents:
2111
diff
changeset
|
41 |
370e995e46c2
fixes in doc about waitress wsgi
Marcin Kuzminski <marcin@python-works.com>
parents:
2111
diff
changeset
|
42 You can simply run `paster serve` as usual. |
2111
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
43 |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
44 |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
45 You can always disable git/hg support by editing a |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
46 file **rhodecode/__init__.py** and commenting out backends |
868 | 47 |
48 .. code-block:: python | |
49 | |
50 BACKENDS = { | |
51 'hg': 'Mercurial repository', | |
52 #'git': 'Git repository', | |
53 } | |
54 | |
2111
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
55 .. _waitress: http://pypi.python.org/pypi/waitress |
c45fb78969a3
docs updates on git support
Marcin Kuzminski <marcin@python-works.com>
parents:
1192
diff
changeset
|
56 .. _gunicorn: http://pypi.python.org/pypi/gunicorn |