monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-devel] cvs_import date bug


From: address@hidden
Subject: [Monotone-devel] cvs_import date bug
Date: Wed, 9 Sep 2009 17:44:13 +0200 (CEST)

It seem there is a bug with cvs_import.
The bug is the same reported in:

http:
//www.mail-archive.com/address@hidden/msg13338.html

but the patch 
seems not working for me.
I'm using a version of monotone that contains that 
fix but dates in a converted
cvs repository always contain year 1970.

./mtn 
version
monotone 0.45dev (base revision: 
e5dcbaac354a94d95e8c39ab7d6d9439dabfef40)

uname -a
Linux PCP-luigi 2.6.28-15-
generic #49-Ubuntu SMP Tue Aug 18 18:40:08 UTC 2009
i686 GNU/Linux


That bug 
seems fixed by the following patch:

#
# old_revision 
[e5dcbaac354a94d95e8c39ab7d6d9439dabfef40]
#
# patch "rcs_import.cc"
#  from 
[e0868099bc25d42879979b40e410b356221cad9b]
#    to 
[6a571a6fd084342518cd7652b8920ad54e3df985]
#

============================================================
--- rcs_import.cc       
e0868099bc25d42879979b40e410b356221cad9b
+++ rcs_import.cc       
6a571a6fd084342518cd7652b8920ad54e3df985
@@ -1371,7 +1371,7 @@ 
cluster_consumer::store_auxiliary_certs(
                              
branch_name(branchname, origin::user),
                              utf8(cvs.
changelog_interner.lookup(p.changelog),
                                   
origin::internal),
-                             date_t(p.time * 1000),

+                             date_t((s64)p.time * 1000),

                              cvs.author_interner.lookup(p.author));
 }





reply via email to

[Prev in Thread] Current Thread [Next in Thread]