Show More
@@ -1,3 +1,5 b'' | |||
|
1 | MERCURIAL QUICK-START | |
|
2 | ||
|
1 | 3 | Setting up Mercurial: |
|
2 | 4 | |
|
3 | 5 | Note: some distributions fails to include bits of distutils by |
@@ -28,7 +30,7 b' Setting up Mercurial:' | |||
|
28 | 30 | |
|
29 | 31 | Setting up a Mercurial project: |
|
30 | 32 | |
|
31 | $ cd linux/ | |
|
33 | $ cd project/ | |
|
32 | 34 | $ hg init # creates .hg |
|
33 | 35 | $ hg status # show changes between repo and working dir |
|
34 | 36 | $ hg diff # generate a unidiff |
@@ -42,6 +44,7 b' Setting up a Mercurial project:' | |||
|
42 | 44 | |
|
43 | 45 | Mercurial commands: |
|
44 | 46 | |
|
47 | $ hg help [command] # get online help | |
|
45 | 48 | $ hg history # show changesets |
|
46 | 49 | $ hg log Makefile # show commits per file |
|
47 | 50 | $ hg update # check out the tip revision |
@@ -65,7 +68,7 b' Branching and merging:' | |||
|
65 | 68 | $ hg commit |
|
66 | 69 | $ cd ../linux |
|
67 | 70 | $ hg pull ../linux-work # pull changesets from linux-work |
|
68 |
$ hg update |
|
|
71 | $ hg update -m # merge the new tip from linux-work into | |
|
69 | 72 | # our working directory |
|
70 | 73 | |
|
71 | 74 | Importing patches: |
@@ -92,7 +95,7 b' Exporting a patch:' | |||
|
92 | 95 | |
|
93 | 96 | Network support: |
|
94 | 97 | |
|
95 | # pull the self-hosting hg repo | |
|
98 | # pull from the primary Mercurial repo | |
|
96 | 99 | foo$ hg init |
|
97 | 100 | foo$ hg pull http://selenic.com/hg/ |
|
98 | 101 | foo$ hg update # hg co works too |
@@ -105,11 +108,11 b' Network support:' | |||
|
105 | 108 | |
|
106 | 109 | # merge changes from a remote machine |
|
107 | 110 | bar$ hg pull http://foo/ |
|
108 |
bar$ hg |
|
|
111 | bar$ hg update -m # merge changes into your working directory | |
|
109 | 112 | |
|
110 | 113 | # Set up a CGI server on your webserver |
|
111 |
foo$ cp hgweb.cgi ~/public_html/hg |
|
|
112 |
foo$ emacs ~/public_html/hg |
|
|
114 | foo$ cp hgweb.cgi ~/public_html/hg/index.cgi | |
|
115 | foo$ emacs ~/public_html/hg/index.cgi # adjust the defaults | |
|
113 | 116 | |
|
114 | 117 | Symbolic repository names: |
|
115 | 118 | |
@@ -118,5 +121,4 b' Symbolic repository names:' | |||
|
118 | 121 | |
|
119 | 122 | [paths] |
|
120 | 123 | main = http://selenic.com/hg |
|
121 | hgweb = http://edge2.net/hg/hgweb/ | |
|
122 | hgdoc = http://edge2.net/hg/man/ | |
|
124 | linux = http://www.kernel.org/hg/ |
General Comments 0
You need to be logged in to leave comments.
Login now