Show More
@@ -149,22 +149,8 b' import [-p <n> -b <base> -q] <patches>::' | |||
|
149 | 149 | |
|
150 | 150 | aliases: patch |
|
151 | 151 | |
|
152 | init [-u] [source]:: | |
|
153 | Initialize a repository in the current directory. | |
|
154 | ||
|
155 | NOTE: The following use is deprecated, and will be removed soon; | |
|
156 | use the "hg clone" command instead. | |
|
157 | ||
|
158 | If a source is specified, pull that source into the repository. | |
|
159 | This source is added to .hg/hgrc as the default for future pulls | |
|
160 | in this repository. | |
|
161 | ||
|
162 | If the specified source is on the same filesystem, the repository | |
|
163 | will be copied via hardlinks. This is the fastest and most | |
|
164 | space-efficient mode of operation. | |
|
165 | ||
|
166 | options: | |
|
167 | -u, --update update the working directory to match the tip | |
|
152 | init:: | |
|
153 | Initialize a new repository in the current directory. | |
|
168 | 154 | |
|
169 | 155 | log <file>:: |
|
170 | 156 | Print the revision history of the specified file. |
@@ -493,15 +493,13 b' def import_(ui, repo, patch1, *patches, ' | |||
|
493 | 493 | addremove(ui, repo, *files) |
|
494 | 494 | repo.commit(files, text) |
|
495 | 495 | |
|
496 |
def init(ui, source=None |
|
|
497 |
"""create a new repository |
|
|
496 | def init(ui, source=None): | |
|
497 | """create a new repository in the current directory""" | |
|
498 | 498 | |
|
499 | 499 | if source: |
|
500 |
ui.warn(" |
|
|
501 | opts['no-update'] = not opts['update'] | |
|
502 | clone(ui, source, None, **opts) | |
|
503 | else: | |
|
504 | repo = hg.repository(ui, ".", create=1) | |
|
500 | ui.warn("no longer supported: use \"hg clone\" instead\n") | |
|
501 | sys.exit(1) | |
|
502 | repo = hg.repository(ui, ".", create=1) | |
|
505 | 503 | |
|
506 | 504 | def log(ui, repo, f): |
|
507 | 505 | """show the revision history of a single file""" |
@@ -753,8 +751,7 b' table = {' | |||
|
753 | 751 | [('p', 'strip', 1, 'path strip'), |
|
754 | 752 | ('b', 'base', "", 'base path')], |
|
755 | 753 | "hg import [options] <patches>"), |
|
756 |
"init": (init, [ |
|
|
757 | 'hg init [options] [url]'), | |
|
754 | "init": (init, [], 'hg init'), | |
|
758 | 755 | "log": (log, [], 'hg log <file>'), |
|
759 | 756 | "manifest": (manifest, [], 'hg manifest [rev]'), |
|
760 | 757 | "parents": (parents, [], 'hg parents [node]'), |
@@ -16,7 +16,7 b' hg commands:' | |||
|
16 | 16 | history show the changelog history |
|
17 | 17 | identify print information about the working copy |
|
18 | 18 | import import an ordered set of patches |
|
19 |
init create a new repository |
|
|
19 | init create a new repository in the current directory | |
|
20 | 20 | log show the revision history of a single file |
|
21 | 21 | manifest output the latest or given revision of the project manifest |
|
22 | 22 | parents show the parents of the current working dir |
@@ -68,7 +68,7 b' hg commands:' | |||
|
68 | 68 | history show the changelog history |
|
69 | 69 | identify print information about the working copy |
|
70 | 70 | import import an ordered set of patches |
|
71 |
init create a new repository |
|
|
71 | init create a new repository in the current directory | |
|
72 | 72 | log show the revision history of a single file |
|
73 | 73 | manifest output the latest or given revision of the project manifest |
|
74 | 74 | parents show the parents of the current working dir |
General Comments 0
You need to be logged in to leave comments.
Login now