Show More
@@ -138,15 +138,19 b' def convert(ui, src, dest=None, revmapfi' | |||||
138 | Mercurial Source |
|
138 | Mercurial Source | |
139 | '''''''''''''''' |
|
139 | '''''''''''''''' | |
140 |
|
140 | |||
141 | --config convert.hg.ignoreerrors=False (boolean) |
|
141 | The Mercurial source recognizes the following configuration | |
142 | ignore integrity errors when reading. Use it to fix Mercurial |
|
142 | options, which you can set on the command line with ``--config``: | |
143 | repositories with missing revlogs, by converting from and to |
|
143 | ||
144 | Mercurial. |
|
144 | :convert.hg.ignoreerrors: ignore integrity | |
145 | --config convert.hg.saverev=False (boolean) |
|
145 | errors when reading. Use it to fix Mercurial repositories with | |
146 | store original revision ID in changeset (forces target IDs to |
|
146 | missing revlogs, by converting from and to Mercurial. Default | |
147 |
|
|
147 | is False. | |
148 | --config convert.hg.startrev=0 (hg revision identifier) |
|
148 | :convert.hg.saverev: store original. | |
149 | convert start revision and its descendants |
|
149 | revision ID in changeset (forces target IDs to change). It takes and | |
|
150 | boolean argument and defaults to False. | |||
|
151 | :convert.hg.startrev: convert | |||
|
152 | start revision and its descendants. It takes a hg revision identifier | |||
|
153 | and defaults to 0. | |||
150 |
|
154 | |||
151 | CVS Source |
|
155 | CVS Source | |
152 | '''''''''' |
|
156 | '''''''''' | |
@@ -161,33 +165,30 b' def convert(ui, src, dest=None, revmapfi' | |||||
161 | converted, and that any directory reorganization in the CVS |
|
165 | converted, and that any directory reorganization in the CVS | |
162 | sandbox is ignored. |
|
166 | sandbox is ignored. | |
163 |
|
167 | |||
164 | The options shown are the defaults. |
|
168 | The following options can be used with ``--config``: | |
165 |
|
169 | |||
166 | --config convert.cvsps.cache=True (boolean) |
|
170 | :convert.cvsps.cache: Set to False to disable | |
167 | Set to False to disable remote log caching, for testing and |
|
171 | remote log caching, for testing and debugging purposes. Default is True. | |
168 | debugging purposes. |
|
172 | :convert.cvsps.fuzz: Specify the maximum | |
169 | --config convert.cvsps.fuzz=60 (integer) |
|
173 | time (in seconds) that is allowed between commits with identical user | |
170 | Specify the maximum time (in seconds) that is allowed between |
|
174 | and log message in a single changeset. When very large files were | |
171 | commits with identical user and log message in a single |
|
175 | checked in as part of a changeset then the default may not be long | |
172 | changeset. When very large files were checked in as part of a |
|
176 | enough. The default is 60. | |
173 | changeset then the default may not be long enough. |
|
177 | :convert.cvsps.mergeto: Specify a | |
174 | --config convert.cvsps.mergeto='{{mergetobranch ([-\\w]+)}}' |
|
178 | regular expression to which commit log messages are matched. If a | |
175 | Specify a regular expression to which commit log messages are |
|
179 | match occurs, then the conversion process will insert a dummy | |
176 | matched. If a match occurs, then the conversion process will |
|
180 | revision merging the branch on which this log message occurs to the | |
177 | insert a dummy revision merging the branch on which this log |
|
181 | branch indicated in the regex. Default is ``{{mergetobranch ([-\\w]+)}}`` | |
178 | message occurs to the branch indicated in the regex. |
|
182 | :convert.cvsps.mergefrom: Specify a | |
179 | --config convert.cvsps.mergefrom='{{mergefrombranch ([-\\w]+)}}' |
|
183 | regular expression to which commit log messages are matched. If a | |
180 | Specify a regular expression to which commit log messages are |
|
184 | match occurs, then the conversion process will add the most recent | |
181 | matched. If a match occurs, then the conversion process will |
|
185 | revision on the branch indicated in the regex as the second parent of | |
182 | add the most recent revision on the branch indicated in the |
|
186 | the changeset. Default is ``{{mergefrombranch ([-\\w]+)}}`` | |
183 | regex as the second parent of the changeset. |
|
187 | :hook.cvslog: Specify a Python function to be called at the end of | |
184 | --config hook.cvslog |
|
188 | gathering the CVS log. The function is passed a list with the log | |
185 | Specify a Python function to be called at the end of gathering |
|
189 | entries, and can modify the entries in-place, or add or delete them. | |
186 | the CVS log. The function is passed a list with the log entries, |
|
190 | :hook.cvschangesets: Specify a Python function to be called after the | |
187 | and can modify the entries in-place, or add or delete them. |
|
191 | changesets are calculated from the the CVS log. The function is passed | |
188 | --config hook.cvschangesets |
|
|||
189 | Specify a Python function to be called after the changesets |
|
|||
190 | are calculated from the the CVS log. The function is passed |
|
|||
191 | a list with the changeset entries, and can modify the changesets |
|
192 | a list with the changeset entries, and can modify the changesets | |
192 | in-place, or add or delete them. |
|
193 | in-place, or add or delete them. | |
193 |
|
194 | |||
@@ -210,19 +211,21 b' def convert(ui, src, dest=None, revmapfi' | |||||
210 | relative to the source URL, or leave them blank to disable auto |
|
211 | relative to the source URL, or leave them blank to disable auto | |
211 | detection. |
|
212 | detection. | |
212 |
|
213 | |||
213 | --config convert.svn.branches=branches (directory name) |
|
214 | The following options can be set with ``--config``: | |
214 | specify the directory containing branches |
|
215 | ||
215 | --config convert.svn.tags=tags (directory name) |
|
216 | :convert.svn.branches: specify the directory | |
216 | specify the directory containing tags |
|
217 | containing branches. The defaults is branches. | |
217 | --config convert.svn.trunk=trunk (directory name) |
|
218 | :convert.svn.tags: specify the directory | |
218 | specify the name of the trunk branch |
|
219 | containing tags. The default is tags. | |
|
220 | :convert.svn.trunk: specify the name of | |||
|
221 | the trunk branch The defauls is trunk. | |||
219 |
|
222 | |||
220 | Source history can be retrieved starting at a specific revision, |
|
223 | Source history can be retrieved starting at a specific revision, | |
221 | instead of being integrally converted. Only single branch |
|
224 | instead of being integrally converted. Only single branch | |
222 | conversions are supported. |
|
225 | conversions are supported. | |
223 |
|
226 | |||
224 | --config convert.svn.startrev=0 (svn revision number) |
|
227 | :convert.svn.startrev: specify start | |
225 | specify start Subversion revision. |
|
228 | Subversion revision number. The default is 0. | |
226 |
|
229 | |||
227 | Perforce Source |
|
230 | Perforce Source | |
228 | ''''''''''''''' |
|
231 | ''''''''''''''' | |
@@ -235,20 +238,21 b' def convert(ui, src, dest=None, revmapfi' | |||||
235 | target may be named ...-hg. |
|
238 | target may be named ...-hg. | |
236 |
|
239 | |||
237 | It is possible to limit the amount of source history to be |
|
240 | It is possible to limit the amount of source history to be | |
238 |
converted by specifying an initial Perforce revision |
|
241 | converted by specifying an initial Perforce revision: | |
239 |
|
242 | |||
240 | --config convert.p4.startrev=0 (perforce changelist number) |
|
243 | :convert.p4.startrev: specify | |
241 |
|
|
244 | initial Perforce revision, a Perforce changelist number). | |
242 |
|
245 | |||
243 | Mercurial Destination |
|
246 | Mercurial Destination | |
244 | ''''''''''''''''''''' |
|
247 | ''''''''''''''''''''' | |
245 |
|
248 | |||
246 | --config convert.hg.clonebranches=False (boolean) |
|
249 | The following options are supported: | |
247 | dispatch source branches in separate clones. |
|
250 | ||
248 | --config convert.hg.tagsbranch=default (branch name) |
|
251 | :convert.hg.clonebranches: dispatch source | |
249 | tag revisions branch name |
|
252 | branches in separate clones. The default is False. | |
250 | --config convert.hg.usebranchnames=True (boolean) |
|
253 | :convert.hg.tagsbranch: branch name for tag revisions, defaults to | |
251 | preserve branch names |
|
254 | ``default``. | |
|
255 | :convert.hg.usebranchnames: preserve branch names. The default is True | |||
252 |
|
256 | |||
253 | """ |
|
257 | """ | |
254 | return convcmd.convert(ui, src, dest, revmapfile, **opts) |
|
258 | return convcmd.convert(ui, src, dest, revmapfile, **opts) |
@@ -123,16 +123,19 b'' | |||||
123 | Mercurial Source |
|
123 | Mercurial Source | |
124 | '''''''''''''''' |
|
124 | '''''''''''''''' | |
125 |
|
125 | |||
126 | --config convert.hg.ignoreerrors=False (boolean) |
|
126 | The Mercurial source recognizes the following configuration options, which | |
127 | ignore integrity errors when reading. Use it to fix Mercurial |
|
127 | you can set on the command line with "--config": | |
128 | repositories with missing revlogs, by converting from and to |
|
|||
129 | Mercurial. |
|
|||
130 |
|
128 | |||
131 | --config convert.hg.saverev=False (boolean) |
|
129 | convert.hg.ignoreerrors | |
132 | store original revision ID in changeset (forces target IDs to change) |
|
130 | ignore integrity errors when reading. Use it to fix Mercurial | |
133 |
|
131 | repositories with missing revlogs, by converting from and to | ||
134 | --config convert.hg.startrev=0 (hg revision identifier) |
|
132 | Mercurial. Default is False. | |
135 | convert start revision and its descendants |
|
133 | convert.hg.saverev | |
|
134 | store original. revision ID in changeset (forces target IDs to | |||
|
135 | change). It takes and boolean argument and defaults to False. | |||
|
136 | convert.hg.startrev | |||
|
137 | convert start revision and its descendants. It takes a hg | |||
|
138 | revision identifier and defaults to 0. | |||
136 |
|
139 | |||
137 | CVS Source |
|
140 | CVS Source | |
138 | '''''''''' |
|
141 | '''''''''' | |
@@ -146,40 +149,39 b'' | |||||
146 | starting directory will be converted, and that any directory |
|
149 | starting directory will be converted, and that any directory | |
147 | reorganization in the CVS sandbox is ignored. |
|
150 | reorganization in the CVS sandbox is ignored. | |
148 |
|
151 | |||
149 | The options shown are the defaults. |
|
152 | The following options can be used with "--config": | |
150 |
|
||||
151 | --config convert.cvsps.cache=True (boolean) |
|
|||
152 | Set to False to disable remote log caching, for testing and debugging |
|
|||
153 | purposes. |
|
|||
154 |
|
||||
155 | --config convert.cvsps.fuzz=60 (integer) |
|
|||
156 | Specify the maximum time (in seconds) that is allowed between commits |
|
|||
157 | with identical user and log message in a single changeset. When very |
|
|||
158 | large files were checked in as part of a changeset then the default |
|
|||
159 | may not be long enough. |
|
|||
160 |
|
153 | |||
161 | --config convert.cvsps.mergeto='{{mergetobranch ([-\w]+)}}' |
|
154 | convert.cvsps.cache | |
162 | Specify a regular expression to which commit log messages are matched. |
|
155 | Set to False to disable remote log caching, for testing and | |
163 | If a match occurs, then the conversion process will insert a dummy |
|
156 | debugging purposes. Default is True. | |
164 | revision merging the branch on which this log message occurs to the |
|
157 | convert.cvsps.fuzz | |
165 | branch indicated in the regex. |
|
158 | Specify the maximum time (in seconds) that is allowed between | |
166 |
|
159 | commits with identical user and log message in a single | ||
167 | --config convert.cvsps.mergefrom='{{mergefrombranch ([-\w]+)}}' |
|
160 | changeset. When very large files were checked in as part of a | |
168 | Specify a regular expression to which commit log messages are matched. |
|
161 | changeset then the default may not be long enough. The default | |
169 | If a match occurs, then the conversion process will add the most |
|
162 | is 60. | |
170 | recent revision on the branch indicated in the regex as the second |
|
163 | convert.cvsps.mergeto | |
171 | parent of the changeset. |
|
164 | Specify a regular expression to which commit log messages are | |
172 |
|
165 | matched. If a match occurs, then the conversion process will | ||
173 | --config hook.cvslog |
|
166 | insert a dummy revision merging the branch on which this log | |
174 | Specify a Python function to be called at the end of gathering the CVS |
|
167 | message occurs to the branch indicated in the regex. Default | |
175 | log. The function is passed a list with the log entries, and can |
|
168 | is "{{mergetobranch ([-\w]+)}}" | |
176 | modify the entries in-place, or add or delete them. |
|
169 | convert.cvsps.mergefrom | |
177 |
|
170 | Specify a regular expression to which commit log messages are | ||
178 | --config hook.cvschangesets |
|
171 | matched. If a match occurs, then the conversion process will | |
179 | Specify a Python function to be called after the changesets are |
|
172 | add the most recent revision on the branch indicated in the | |
180 | calculated from the the CVS log. The function is passed a list with |
|
173 | regex as the second parent of the changeset. Default is | |
181 | the changeset entries, and can modify the changesets in-place, or add |
|
174 | "{{mergefrombranch ([-\w]+)}}" | |
182 | or delete them. |
|
175 | hook.cvslog | |
|
176 | Specify a Python function to be called at the end of gathering | |||
|
177 | the CVS log. The function is passed a list with the log | |||
|
178 | entries, and can modify the entries in-place, or add or delete | |||
|
179 | them. | |||
|
180 | hook.cvschangesets | |||
|
181 | Specify a Python function to be called after the changesets | |||
|
182 | are calculated from the the CVS log. The function is passed a | |||
|
183 | list with the changeset entries, and can modify the changesets | |||
|
184 | in-place, or add or delete them. | |||
183 |
|
185 | |||
184 | An additional "debugcvsps" Mercurial command allows the builtin changeset |
|
186 | An additional "debugcvsps" Mercurial command allows the builtin changeset | |
185 | merging code to be run without doing a conversion. Its parameters and |
|
187 | merging code to be run without doing a conversion. Its parameters and | |
@@ -199,21 +201,22 b'' | |||||
199 | them to paths relative to the source URL, or leave them blank to disable |
|
201 | them to paths relative to the source URL, or leave them blank to disable | |
200 | auto detection. |
|
202 | auto detection. | |
201 |
|
203 | |||
202 | --config convert.svn.branches=branches (directory name) |
|
204 | The following options can be set with "--config": | |
203 | specify the directory containing branches |
|
|||
204 |
|
205 | |||
205 | --config convert.svn.tags=tags (directory name) |
|
206 | convert.svn.branches | |
206 |
specify the directory containing |
|
207 | specify the directory containing branches. The defaults is | |
207 |
|
208 | branches. | ||
208 | --config convert.svn.trunk=trunk (directory name) |
|
209 | convert.svn.tags | |
209 | specify the name of the trunk branch |
|
210 | specify the directory containing tags. The default is tags. | |
|
211 | convert.svn.trunk | |||
|
212 | specify the name of the trunk branch The defauls is trunk. | |||
210 |
|
213 | |||
211 | Source history can be retrieved starting at a specific revision, instead |
|
214 | Source history can be retrieved starting at a specific revision, instead | |
212 | of being integrally converted. Only single branch conversions are |
|
215 | of being integrally converted. Only single branch conversions are | |
213 | supported. |
|
216 | supported. | |
214 |
|
217 | |||
215 | --config convert.svn.startrev=0 (svn revision number) |
|
218 | convert.svn.startrev | |
216 | specify start Subversion revision. |
|
219 | specify start Subversion revision number. The default is 0. | |
217 |
|
220 | |||
218 | Perforce Source |
|
221 | Perforce Source | |
219 | ''''''''''''''' |
|
222 | ''''''''''''''' | |
@@ -225,22 +228,24 b'' | |||||
225 | directory, because otherwise the target may be named ...-hg. |
|
228 | directory, because otherwise the target may be named ...-hg. | |
226 |
|
229 | |||
227 | It is possible to limit the amount of source history to be converted by |
|
230 | It is possible to limit the amount of source history to be converted by | |
228 |
specifying an initial Perforce revision |
|
231 | specifying an initial Perforce revision: | |
229 |
|
232 | |||
230 | --config convert.p4.startrev=0 (perforce changelist number) |
|
233 | convert.p4.startrev | |
231 |
specify initial Perforce revision |
|
234 | specify initial Perforce revision, a Perforce changelist | |
|
235 | number). | |||
232 |
|
236 | |||
233 | Mercurial Destination |
|
237 | Mercurial Destination | |
234 | ''''''''''''''''''''' |
|
238 | ''''''''''''''''''''' | |
235 |
|
239 | |||
236 | --config convert.hg.clonebranches=False (boolean) |
|
240 | The following options are supported: | |
237 | dispatch source branches in separate clones. |
|
|||
238 |
|
241 | |||
239 | --config convert.hg.tagsbranch=default (branch name) |
|
242 | convert.hg.clonebranches | |
240 | tag revisions branch name |
|
243 | dispatch source branches in separate clones. The default is | |
241 |
|
244 | False. | ||
242 | --config convert.hg.usebranchnames=True (boolean) |
|
245 | convert.hg.tagsbranch | |
243 | preserve branch names |
|
246 | branch name for tag revisions, defaults to "default". | |
|
247 | convert.hg.usebranchnames | |||
|
248 | preserve branch names. The default is True | |||
244 |
|
249 | |||
245 | options: |
|
250 | options: | |
246 |
|
251 |
General Comments 0
You need to be logged in to leave comments.
Login now