[cvsnt] history error? [ Vírusmentes]

Zoltan.Szathmary at generali.hu Zoltan.Szathmary at generali.hu
Thu May 5 10:51:27 BST 2005


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


Hi!
Some weeks ago I asked a question about history file sturcture error.
Nobody react to it...
I hacked a little the source since then.

Some month ago, the history line looks like this:
X date | user | CurDir | special | rev(s) | argument '\n'
for example:
M273b3463|dgg|~/work*9|usr/local/cvs/examples|1.2|loginfo

but the now (for some cvsnt release) there is an additional (null) value
inserted before the user field, and argument(s) missing from the end of
line, so now the history line looks like this:
X date | (null) | user | CurDir | special | rev(s) '\n'
for example:
M273b3463|(null)|dgg|~/work*9|usr/local/cvs/examples|1.2

In the history_write() function, the only important difference between old
history.c and new history.cpp:

In the old history.c (in the v2.0.58d) write history line in this way:

    sprintf (line, "%c%08lx|%s|%s|%s|%s|%s\n",
           type, now,
           username, workdir, repos, revs, name);

the new history.cpp (in the v2.5.01.1949) write history line in this way:
    sprintf (line, "%c%08lx|%s|%s|%s|%s|%s\n",
           type, global_session_time_t,
           username, workdir, repos, revs, name);
using "global_session_time_t" instead of "now".

May this cause the above-mentioned symptom?
For this or other reasons,  but the symptom exists!
Zoltán





More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook