Re: Pass 2 failure, but from which file ?

Michael Haggerty <[email protected]> Wed, 22 Oct 2014 07:36:31 -0700
Newsgroups gmane.comp.version-control.subversion.cvs2svn.user
Message-ID <[email protected]>
On October 22, 2014 3:47:17 AM PDT, "Kerry, Richard" <[email protected]=
t> wrote:
>I've been getting a message during a conversion (long log message
>severely reduced - probably removed offending characters) :
>
>----- pass 2 (CleanMetadataPass) -----
>Converting metadata to UTF8...
>WARNING: Problem decoding log message:
>--------------------------------------------------------------------------=
-
>Made changes so that system meets requirment to write logs to 2xDBs
>"Hi,
>    Making output module work was team effort.  I thank you all.
>Regards,"
>--------------------------------------------------------------------------=
-
>ERROR: There were warnings converting author names and/or log messages
>to Unicode (see messages above).  Please restart this pass
>with one or more '--encoding' parameters or with
>'--fallback-encoding'.
>
>Although it is reasonably clear how I can fix it (I've added
>"--fallback-encoding=3Dutf-8") I would like to check what the message is
>in both the original CVS revision and the new SVN one.
>
>The message printed out doesn't say which file (or revision) it is
>from.  Is there any way of finding where it comes from ?  It would have
>been helpful for this information to have been printed with the warning
>but I can't at the moment trace this through the code.  I'm new to
>cvs2svn and I'm not that familiar with Python (I'm C/C++).

In general, a single log message appears multiple times, namely in every CV=
S file that was changed in that commit. By this point in the conversion the=
 commit messages have been converted into unique tokens, so it would take a=
 scan through the whole list of commits to provide the information that you=
 are asking for (i.e. it is doable but not trivial or cheap).

But it's pretty easy for you to find the files yourself: CVS "*,v" files ar=
e in text format. So just grep through your repo for a distinctive string i=
n the message.

Hope that helps,
Michael


--=20
Sent from my Android device with K-9 Mail. Please excuse my brevity.

------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=3D1670&dsMessageId=3D=
3090305

To unsubscribe from this discussion, e-mail: [[email protected]=
ris.org].