Code

cvsimport: skip commits that are too recent
authorMartin Langhoff <martin@catalyst.net.nz>
Mon, 8 Jan 2007 01:11:23 +0000 (14:11 +1300)
committerJunio C Hamano <junkio@cox.net>
Mon, 8 Jan 2007 02:06:49 +0000 (18:06 -0800)
commit6211988f77ab20cc8705fb8c9ecb72ba166b80da
treeba4eaa3e07de1a98df5b10089e7903d068bbf026
parent3faa541fa924890b85b240b800312befbf052b9f
cvsimport: skip commits that are too recent

With this patch, cvsimport will skip commits made
in the last 10 minutes. The recent-ness test is of
5 minutes + cvsps fuzz window (5 minutes default).

When working with a CVS repository that is in use,
importing commits that are too recent can lead to
partially incorrect trees. This is mainly due to

 - Commits that are within the cvsps fuzz window may later
   be found to have affected more files.

 - When performing incremental imports, clock drift between
   the systems may lead to skipped commits.

This commit helps keep incremental imports of in-use
CVS repositories sane.

Signed-off-by: Martin Langhoff <martin@catalyst.net.nz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-cvsimport.perl