comparison hgext/convert/__init__.py @ 17974:337d728e644f

convert: add config option to use the local time zone The default for the time zone offset in a converted changeset has always been 0 (UTC). With this patch, the converted changeset is modified so that the local offset from UTC is specified as the time zone offset. The option is specified as the boolean convert.localtimezone (default False). Example usage: hg convert -s cvs --config convert.localtimezone=True example-cvs example-hg IMPORTANT: the patch only applies to conversions from cvs or svn. The documentation for the option only appears in those two sections in the convert help text.
author Julian Cowley <julian@lava.net>
date Sun, 18 Nov 2012 12:26:50 -1000
parents e7cfe3587ea4
children 2eae2f9e85ef
comparison
equal deleted inserted replaced
17973:fa6be7b81f77 17974:337d728e644f
188 :convert.cvsps.mergefrom: Specify a regular expression to which 188 :convert.cvsps.mergefrom: Specify a regular expression to which
189 commit log messages are matched. If a match occurs, then the 189 commit log messages are matched. If a match occurs, then the
190 conversion process will add the most recent revision on the 190 conversion process will add the most recent revision on the
191 branch indicated in the regex as the second parent of the 191 branch indicated in the regex as the second parent of the
192 changeset. Default is ``{{mergefrombranch ([-\\w]+)}}`` 192 changeset. Default is ``{{mergefrombranch ([-\\w]+)}}``
193
194 :convert.localtimezone: use local time (as determined by the TZ
195 environment variable) for changeset date/times. The default
196 is False (use UTC).
193 197
194 :hook.cvslog: Specify a Python function to be called at the end of 198 :hook.cvslog: Specify a Python function to be called at the end of
195 gathering the CVS log. The function is passed a list with the 199 gathering the CVS log. The function is passed a list with the
196 log entries, and can modify the entries in-place, or add or 200 log entries, and can modify the entries in-place, or add or
197 delete them. 201 delete them.
228 :convert.svn.tags: specify the directory containing tags. The 232 :convert.svn.tags: specify the directory containing tags. The
229 default is ``tags``. 233 default is ``tags``.
230 234
231 :convert.svn.trunk: specify the name of the trunk branch. The 235 :convert.svn.trunk: specify the name of the trunk branch. The
232 default is ``trunk``. 236 default is ``trunk``.
237
238 :convert.localtimezone: use local time (as determined by the TZ
239 environment variable) for changeset date/times. The default
240 is False (use UTC).
233 241
234 Source history can be retrieved starting at a specific revision, 242 Source history can be retrieved starting at a specific revision,
235 instead of being integrally converted. Only single branch 243 instead of being integrally converted. Only single branch
236 conversions are supported. 244 conversions are supported.
237 245