<div dir="ltr"><div>in cvs2svn option file :</div>
<div> </div>
<div># You might want to be especially strict when converting filenames to<br># unicode (e.g., maybe not specify a fallback_encoding).<br>ctx.cvs_filename_decoder = CVSTextDecoder(<br> [<br> 'latin1',<br>
#'utf8',<br> #'ascii',<br> ],<br> fallback_encoding='ascii'<br> )<br><br></div>
<div>I've added the ppa repositiory for ubuntu apt-get and update to <a href="http://1.7.0.1">1.7.0.1</a> and will try again.</div>
<div>Thomas</div>
<div> </div>
<div class="gmail_quote">On Tue, Oct 7, 2008 at 17:22, Jelmer Vernooij <span dir="ltr"><<a href="mailto:jelmer@samba.org">jelmer@samba.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Am Dienstag, den 07.10.2008, 17:03 +0200 schrieb Thomas Manson:<br>
<div class="Ih2E3d">> Hi Michael,<br>><br>> I've checkout the trunk version (the version on ubuntu hardy heron<br>> is quite old : 2.0.1)<br>> succeed in cvs2svn conversion,<br>><br>> unfortunately it crashes in the same way that bzr cvsps-import<br>
> does :<br>><br>><br>> thomas@home:~/temp/bzr$<br>> cat ../cvs2svn-tmp/git-blob.dat ../cvs2svn-tmp/git-dump.dat | bzr<br>> fast-import -<br>> bzr: ERROR: exceptions.UnicodeDecodeError: 'utf8' codec can't decode<br>
> bytes in position 43-45: invalid data<br></div>The problem seems to be that one of the characters in your CVS<br>repository is not valid as UTF8 character. Did you specify the locale in<br>which the filenames are encoded explicitly somehow?<br>
<br>Git does not have this problem, since it does not interpret any of the<br>filenames you store in it. This has advantages (conversion can't fail<br>since you're not doing conversion at at all), but it also has<br>
disadvantages - checking out the repository on hosts with a different<br>encoding breaks the filenames.<br><br>Cheers,<br><br>Jelmer<br>
<div>
<div></div>
<div class="Wj3C7c"><br>> Traceback (most recent call last):<br>> File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line<br>> 834, in run_bzr_catch_errors<br>> return run_bzr(argv)<br>
> File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line<br>> 790, in run_bzr<br>> ret = run(*run_argv)<br>> File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line<br>
> 492, in run_argv_aliases<br>> return self.run(**all_cmd_args)<br>> File "/home/thomas/.bazaar/plugins/fastimport/__init__.py", line<br>> 199, in run<br>> params, verbose)<br>> File "/home/thomas/.bazaar/plugins/fastimport/__init__.py", line 77,<br>
> in _run<br>> return proc.process(p.iter_commands)<br>> File "/home/thomas/.bazaar/plugins/fastimport/processor.py", line<br>> 83, in process<br>> self._process(command_iter)<br>> File<br>
> "/home/thomas/.bazaar/plugins/fastimport/processors/generic_processor.py", line 317, in _process<br>> processor.ImportProcessor._process(self, command_iter)<br>> File "/home/thomas/.bazaar/plugins/fastimport/processor.py", line<br>
> 105, in _process<br>> handler(self, cmd)<br>> File<br>> "/home/thomas/.bazaar/plugins/fastimport/processors/generic_processor.py", line 486, in commit_handler<br>> handler.process()<br>
> File "/home/thomas/.bazaar/plugins/fastimport/processor.py", line<br>> 164, in process<br>> for fc in self.command.file_iter():<br>> File "/home/thomas/.bazaar/plugins/fastimport/parser.py", line 312,<br>
> in iter_file_commands<br>> yield self._parse_file_modify(line[2:])<br>> File "/home/thomas/.bazaar/plugins/fastimport/parser.py", line 365,<br>> in _parse_file_modify<br>> path = self._path(params[2])<br>
> File "/home/thomas/.bazaar/plugins/fastimport/parser.py", line 493,<br>> in _path<br>> return s.decode('utf_8')<br>> File "/usr/lib/python2.5/encodings/utf_8.py", line 16, in decode<br>
> return codecs.utf_8_decode(input, errors, True)<br>> UnicodeDecodeError: 'utf8' codec can't decode bytes in position 43-45:<br>> invalid data<br>> bzr 1.3.1 on python 2.5.2.final.0 (linux2)<br>
> arguments: ['/usr/bin/bzr', 'fast-import', '-']<br>> encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.UTF-8'<br>> plugins:<br>><br>> bzrtools /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.3.0]<br>
> cvsps_import /home/thomas/.bazaar/plugins/cvsps_import<br>> [unknown]<br>> fastimport /home/thomas/.bazaar/plugins/fastimport<br>> [unknown]<br>><br>> launchpad /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]<br>
> *** Bazaar has encountered an internal error.<br>> Please report a bug at <a href="https://bugs.launchpad.net/bzr/+filebug" target="_blank">https://bugs.launchpad.net/bzr/+filebug</a><br>> including this traceback, and a description of what you<br>
> were doing when the error occurred.<br>><br>><br>> I don't think it's related to cvs2svn or cvsps as it fails in both<br>> cases.<br>> It should be a bzr bug.<br>><br>> I've successfully converted my project to git repository format with<br>
> these set of command :<br>><br>> export CVSROOT=/home/thomas/temp/cvs2git/cvs/files<br>><br>> git cvsimport -C /home/thomas/temp/cvs2gitOutput/crf-irp<br>> crf-irp<br>> git cvsimport -C /home/thomas/temp/cvs2gitOutput/crf-irp-model<br>
> crf-irp-model<br>> git cvsimport -C /home/thomas/temp/cvs2gitOutput/crf-irp-monitor<br>> crf-irp-monitor<br>> git cvsimport -C /home/thomas/temp/cvs2gitOutput/crf-irp-portail<br>> crf-irp-portail<br>> git cvsimport -C /home/thomas/temp/cvs2gitOutput/crf-irp-utilities<br>
> crf-irp-utilities<br>><br>><br>> Is it possible to convert the git version of my sources to bzr ? maybe<br>> it would be successfull.<br>><br>><br>> Thomas.<br>><br>><br>><br>><br>> On Tue, Oct 7, 2008 at 12:41, Michael Haggerty <<a href="mailto:mhagger@alum.mit.edu">mhagger@alum.mit.edu</a>><br>
> wrote:<br>> Jelmer Vernooij wrote:<br>> > Am Dienstag, den 07.10.2008, 00:01 +0200 schrieb Thomas<br>> Manson:<br>> >> I've look to it... but didn't tryed yet...<br>
> >><br>> >> It really misses straightforward howto (for all tools<br>> except bzr<br>> >> cvsimport)<br>> > cvsps-import should be the best solution here, we should<br>
> just fixing<br>> > that imho. What's blocking you from using it?<br>><br>><br>> No conversion tool that is based on cvsps will be able to do a<br>> truly<br>> reliable job of migrating from CVS. cvsps, which was written<br>
> for<br>> another purpose, simply is not robust enough and does not emit<br>> enough<br>> information for a complete conversion. I gave many concrete<br>> examples of<br>
> its shortcomings on the Mercurial mailing list [1].<br>><br>> Deducing a project's history from CVS's incomplete records is<br>> a very<br>> tricky thing; cvs2svn's feature list [2] will give you an idea<br>
> of the<br>> kinds of things an industrial-strength converter needs to<br>> handle.<br>> cvs2svn deduces the CVS changesets itself, using a much more<br>> robust<br>
> algorithm than that used by cvsps. (The main disadvantage of<br>> cvs2svn is<br>> that it can only be used for one-time conversions, not for<br>> tracking a<br>> live CVS repository incrementally.)<br>
><br>> cvs2svn/cvs2git can create output in git-fast-import format<br>> [3], which<br>> should also be readable by the bzr fast-import tool. It<br>> hasn't gotten<br>> much testing in "cvs2bzr" mode, but given that 90% of the job<br>
> is<br>> inferring CVS's history, it should not be too much work to fix<br>> any<br>> problems in the "2bzr" part. Therefore, any feedback would be<br>> much<br>
> appreciated.<br>><br>> (By the way, if you want to use cvs2svn to convert to bzr, I<br>> suggest<br>> that you use the trunk version of cvs2svn, which has several<br>> improvements compared to release <a href="http://2.1.1./" target="_blank">2.1.1.</a>)<br>
><br>> Michael<br>><br>> [1]<br>> <a href="http://selenic.com/pipermail/mercurial-devel/2008-February/004975.html" target="_blank">http://selenic.com/pipermail/mercurial-devel/2008-February/004975.html</a><br>
><br>> [2] <a href="http://cvs2svn.tigris.org/features.html" target="_blank">http://cvs2svn.tigris.org/features.html</a><br>><br>> [3] <a href="http://cvs2svn.tigris.org/cvs2git.html" target="_blank">http://cvs2svn.tigris.org/cvs2git.html</a><br>
><br><br></div></div><font color="#888888">--<br>Jelmer Vernooij <<a href="mailto:jelmer@samba.org">jelmer@samba.org</a>> - <a href="http://samba.org/~jelmer/" target="_blank">http://samba.org/~jelmer/</a><br>Jabber: <a href="mailto:jelmer@jabber.fsfe.org">jelmer@jabber.fsfe.org</a><br>
<br></font></blockquote></div><br></div>