##// END OF EJS Templates
convert: document source and sink identifiers, fix error message
Patrick Mezard -
r6976:b072266a default
parent child Browse files
Show More
@@ -14,18 +14,18 b' from mercurial import commands'
14 14 def convert(ui, src, dest=None, revmapfile=None, **opts):
15 15 """Convert a foreign SCM repository to a Mercurial one.
16 16
17 Accepted source formats:
18 - Mercurial
19 - CVS
20 - Darcs
21 - git
22 - Subversion
23 - Monotone
24 - GNU Arch
17 Accepted source formats [identifiers]:
18 - Mercurial [hg]
19 - CVS [cvs]
20 - Darcs [darcs]
21 - git [git]
22 - Subversion [svn]
23 - Monotone [mtn]
24 - GNU Arch [gnuarch]
25 25
26 Accepted destination formats:
27 - Mercurial
28 - Subversion (history on branches is not preserved)
26 Accepted destination formats [identifiers]:
27 - Mercurial [hg]
28 - Subversion [svn] (history on branches is not preserved)
29 29
30 30 If no revision is given, all revisions will be converted. Otherwise,
31 31 convert will only import up to the named revision (given in a format
@@ -53,7 +53,7 b' def convertsource(ui, path, type, rev):'
53 53 if not ui.quiet:
54 54 for inst in exceptions:
55 55 ui.write("%s\n" % inst)
56 raise util.Abort(_('%s: unknown repository type') % path)
56 raise util.Abort(_('%s: missing or unsupported repository') % path)
57 57
58 58 def convertsink(ui, path, type):
59 59 for name, sink in sink_converters:
@@ -2,18 +2,18 b' hg convert [OPTION]... SOURCE [DEST [REV'
2 2
3 3 Convert a foreign SCM repository to a Mercurial one.
4 4
5 Accepted source formats:
6 - Mercurial
7 - CVS
8 - Darcs
9 - git
10 - Subversion
11 - Monotone
12 - GNU Arch
5 Accepted source formats [identifiers]:
6 - Mercurial [hg]
7 - CVS [cvs]
8 - Darcs [darcs]
9 - git [git]
10 - Subversion [svn]
11 - Monotone [mtn]
12 - GNU Arch [gnuarch]
13 13
14 Accepted destination formats:
15 - Mercurial
16 - Subversion (history on branches is not preserved)
14 Accepted destination formats [identifiers]:
15 - Mercurial [hg]
16 - Subversion [svn] (history on branches is not preserved)
17 17
18 18 If no revision is given, all revisions will be converted. Otherwise,
19 19 convert will only import up to the named revision (given in a format
General Comments 0
You need to be logged in to leave comments. Login now