[issue1984] Crash when converting from CVS to Mercurial

Michael Haggerty mhagger at alum.mit.edu
Tue Jan 12 23:40:06 CST 2010


Eniko Hammas wrote:
> While trying to convert a CVS repository to a Mercurial one I got the
> following error message:
> Abort: date exceeds 32 bits: -2206072626
> The problem was caused by the date format from certain files committed in
> the beginning of 2000. Example of such format: 00.01.10.09.49.56
> After manually modifying the date format to 2000.01.10.09.49.56 the
> conversion worked correctly. However needing to modify manually the files is
> not nice.

According to rcsfile(5):

> [the year] contains just the last two digits of  the  year  for  years
> from  1900 through 1999, and all the digits of years thereafter.

If the hg convert tool doesn't know this, it is definitely a bug.
(cvs2hg knows it :-) )

I hope you didn't edit the dates in the main CVS repository, as it is
possible that years like "1997" will confuse CVS.

Michael


More information about the Mercurial-devel mailing list