Git-SVNReplay
view release on metacpan or search on metacpan
SVNReplay.pm view on Meta::CPAN
}
ebegin "comitting changes to svn";
$this->logging_systemx(qw(svn commit -F .msg));
eend 1;
if( my $gdate = capturex(qw(git show -s --pretty=format:%at)) ) {
my $date = strftime('%Y-%m-%dT%H:%M:%S.000000Z', gmtime($gdate));
ebegin "changing commit date to $date";
$this->logging_systemx(qw(svn propset --revprop -r HEAD svn:date), $date);
eend 1;
} else {
ewarn "date not found for $commit";
}
$this->{dbm}{last_dirs}{$commit} = \@dirs;
$this->{dbm}{last_files}{$commit} = \@files;
# svn commits sometimes alters things causing git merge problems (very rare).
http://svn.haxx.se/dev/archive-2003-08/1096.shtml
Date: 2003-08-21 00:33:37 CEST
james-tigris@jrv.org wrote:
>I'm trying to write a program to import from old PVCS files into SVN
>and retain the authorship and timestamps.
>
>I'm wondering if doing a propset of svn:date is going to really do
>what I want, which is to allow me to retrieve an entire project as of
>a particular date. The files are being committed one by one, revision
>by revision from the original PVCS archives
>
You must be very, very careful when changing svn:date. At the moment,
SVN assumes that commit dates increase monotonically with revision
numbers. So, while it's possible to change svn:date, braking this
assumption would mean that the -r{date} option would not work reliably
any more.
( run in 2.381 seconds using v1.01-cache-2.11-cpan-71847e10f99 )