comparison mercurial/configitems.py @ 46400:7525e77b5eac

convert: option to set date and time for svn commits Converting to subversion repository is not preserving original commit dates as it may break some subversion functionality if commit dates are not monotonically increasing. This patch adds `convert.svn.dangerous-set-commit-dates` configuration option to change this behaviour and enable commit dates convertion for those who want to take risks. Subversion always uses commit dates with UTC timezone, so only timestamps are used. Test `test-convert-svn-sink.t` uses `svnxml.py` script to dump history of svn repositories. Atm the script is not printing `date` field from svn log. This patch changes this to allow checks on correctness of date and time convertion. Documentation is updated. Additional test case is added to test commit dates convertion. Differential Revision: https://phab.mercurial-scm.org/D9721
author Nikita Slyusarev <nslus@yandex-team.com>
date Tue, 12 Jan 2021 00:11:16 +0300
parents 0600e8467101
children e948ad0dcbe2
comparison
equal deleted inserted replaced
46399:1d6d1a15a963 46400:7525e77b5eac
568 b'convert', 568 b'convert',
569 b'svn.startrev', 569 b'svn.startrev',
570 default=0, 570 default=0,
571 ) 571 )
572 coreconfigitem( 572 coreconfigitem(
573 b'convert',
574 b'svn.dangerous-set-commit-dates',
575 default=False,
576 )
577 coreconfigitem(
573 b'debug', 578 b'debug',
574 b'dirstate.delaywrite', 579 b'dirstate.delaywrite',
575 default=0, 580 default=0,
576 ) 581 )
577 coreconfigitem( 582 coreconfigitem(