equal
deleted
inserted
replaced
1 Setting up Mercurial in your home directory: |
1 Setting up Mercurial: |
2 |
2 |
3 Note: Debian fails to include bits of distutils, you'll need |
3 Note: some distributions fails to include bits of distutils by |
4 python-dev to install. Alternately, shove everything somewhere in |
4 default, you'll need python-dev to install. |
5 your path. |
5 |
|
6 First, unpack the source: |
6 |
7 |
7 $ tar xvzf mercurial-<ver>.tar.gz |
8 $ tar xvzf mercurial-<ver>.tar.gz |
8 $ cd mercurial-<ver> |
9 $ cd mercurial-<ver> |
9 $ python2.3 setup.py install --home ~ |
10 |
|
11 Then to install: |
|
12 |
|
13 $ python setup.py install # change python to python2.3 if 2.2 is default |
|
14 |
|
15 To install in your home directory (~/bin and ~/lib, actually), simply |
|
16 run: |
|
17 |
|
18 $ python2.3 setup.py install --home=~ |
10 $ export PYTHONPATH=${HOME}/lib/python # add this to your .bashrc |
19 $ export PYTHONPATH=${HOME}/lib/python # add this to your .bashrc |
|
20 $ export PATH=${HOME}/bin:$PATH # |
11 $ export HGMERGE=tkmerge # customize this |
21 $ export HGMERGE=tkmerge # customize this |
|
22 |
|
23 And finally: |
|
24 |
12 $ hg # test installation, show help |
25 $ hg # test installation, show help |
13 |
26 |
14 If you get complaints about missing modules, you probably haven't set |
27 If you get complaints about missing modules, you probably haven't set |
15 PYTHONPATH correctly. |
28 PYTHONPATH correctly. |
16 |
29 |
84 |
97 |
85 # Set up a CGI server on your webserver |
98 # Set up a CGI server on your webserver |
86 foo$ cp hgweb.cgi ~/public_html/hg-linux/index.cgi |
99 foo$ cp hgweb.cgi ~/public_html/hg-linux/index.cgi |
87 foo$ emacs ~/public_html/hg-linux/index.cgi # adjust the defaults |
100 foo$ emacs ~/public_html/hg-linux/index.cgi # adjust the defaults |
88 |
101 |
89 # Give symbolic names to repos |
102 Symbolic repository names: |
90 foo$ echo "main http://selenic.com/hg/" >> ~/.hgpaths # one pair per line |
103 |
|
104 Mercurial uses an optional file called ~/.hgpaths to track repo |
|
105 locations symbolically. Simply add a line with the name, a space, and |
|
106 a URL: |
|
107 |
|
108 foo$ echo "main http://selenic.com/hg/" >> ~/.hgpaths |
91 foo$ hg merge main |
109 foo$ hg merge main |
92 foo$ hg co |
110 foo$ hg co |