##// END OF EJS Templates
convert: show example splice, author, and branch map entries in help...
Martin Geisler -
r12184:025ca073 stable
parent child Browse files
Show More
@@ -73,8 +73,11 def convert(ui, src, dest=None, revmapfi
73 73 The [username mapping] file is a simple text file that maps each
74 74 source commit author to a destination commit author. It is handy
75 75 for source SCMs that use unix logins to identify authors (eg:
76 CVS). One line per author mapping and the line format is:
77 srcauthor=whatever string you want
76 CVS). One line per author mapping and the line format is::
77
78 source author = destination author
79
80 Empty lines and lines starting with a ``#`` are ignored.
78 81
79 82 The filemap is a file that allows filtering and remapping of files
80 83 and directories. Each line can contain one of the following
@@ -104,7 +107,11 def convert(ui, src, dest=None, revmapfi
104 107 useful if you want to e.g. give a Subversion merge two parents, or
105 108 graft two disconnected series of history together. Each entry
106 109 contains a key, followed by a space, followed by one or two
107 comma-separated values. The key is the revision ID in the source
110 comma-separated values::
111
112 key parent1, parent2
113
114 The key is the revision ID in the source
108 115 revision control system whose parents should be modified (same
109 116 format as a key in .hg/shamap). The values are the revision IDs
110 117 (in either the source or destination revision control system) that
@@ -118,11 +125,15 def convert(ui, src, dest=None, revmapfi
118 125 conjunction with a splicemap, it allows for a powerful combination
119 126 to help fix even the most badly mismanaged repositories and turn them
120 127 into nicely structured Mercurial repositories. The branchmap contains
121 lines of the form "original_branch_name new_branch_name".
122 "original_branch_name" is the name of the branch in the source
123 repository, and "new_branch_name" is the name of the branch is the
124 destination repository. This can be used to (for instance) move code
125 in one repository from "default" to a named branch.
128 lines of the form::
129
130 original_branch_name new_branch_name
131
132 where "original_branch_name" is the name of the branch in the
133 source repository, and "new_branch_name" is the name of the branch
134 is the destination repository. No whitespace is allowed in the
135 branch names. This can be used to (for instance) move code in one
136 repository from "default" to a named branch.
126 137
127 138 Mercurial Source
128 139 ----------------
@@ -54,7 +54,11 convert a foreign SCM repository to a Me
54 54 The [username mapping] file is a simple text file that maps each source
55 55 commit author to a destination commit author. It is handy for source SCMs
56 56 that use unix logins to identify authors (eg: CVS). One line per author
57 mapping and the line format is: srcauthor=whatever string you want
57 mapping and the line format is:
58
59 source author = destination author
60
61 Empty lines and lines starting with a "#" are ignored.
58 62
59 63 The filemap is a file that allows filtering and remapping of files and
60 64 directories. Each line can contain one of the following directives:
@@ -81,24 +85,32 convert a foreign SCM repository to a Me
81 85 letting you specify the parents of a revision. This is useful if you want
82 86 to e.g. give a Subversion merge two parents, or graft two disconnected
83 87 series of history together. Each entry contains a key, followed by a
84 space, followed by one or two comma-separated values. The key is the
85 revision ID in the source revision control system whose parents should be
86 modified (same format as a key in .hg/shamap). The values are the revision
87 IDs (in either the source or destination revision control system) that
88 should be used as the new parents for that node. For example, if you have
89 merged "release-1.0" into "trunk", then you should specify the revision on
90 "trunk" as the first parent and the one on the "release-1.0" branch as the
91 second.
88 space, followed by one or two comma-separated values:
89
90 key parent1, parent2
91
92 The key is the revision ID in the source revision control system whose
93 parents should be modified (same format as a key in .hg/shamap). The
94 values are the revision IDs (in either the source or destination revision
95 control system) that should be used as the new parents for that node. For
96 example, if you have merged "release-1.0" into "trunk", then you should
97 specify the revision on "trunk" as the first parent and the one on the
98 "release-1.0" branch as the second.
92 99
93 100 The branchmap is a file that allows you to rename a branch when it is
94 101 being brought in from whatever external repository. When used in
95 102 conjunction with a splicemap, it allows for a powerful combination to help
96 103 fix even the most badly mismanaged repositories and turn them into nicely
97 104 structured Mercurial repositories. The branchmap contains lines of the
98 form "original_branch_name new_branch_name". "original_branch_name" is the
99 name of the branch in the source repository, and "new_branch_name" is the
100 name of the branch is the destination repository. This can be used to (for
101 instance) move code in one repository from "default" to a named branch.
105 form:
106
107 original_branch_name new_branch_name
108
109 where "original_branch_name" is the name of the branch in the source
110 repository, and "new_branch_name" is the name of the branch is the
111 destination repository. No whitespace is allowed in the branch names. This
112 can be used to (for instance) move code in one repository from "default"
113 to a named branch.
102 114
103 115 Mercurial Source
104 116 ----------------
General Comments 0
You need to be logged in to leave comments. Login now