git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git fast-import problem converting from CVS with git 1.6.1 and cvs2svn 2.2.0

From
Michael Haggerty <mhagger@alum.mit.edu>
Date
Jan 23, 2009, 04:14 UTC
Message-ID
<49794412.8070909@alum.mit.edu>
In-Reply-To
<63BEA5E623E09F4D92233FB12A9F794302BC6921@emailmn.mqsoftware.com>
Kelly F. Hickel wrote:
Show 16 quoted lines
> I found the section in question, it is:
> -- snip --
> commit refs/heads/TAG.FIXUP
> mark :1000007128
> committer cvs2svn <cvs2svn> 1002043747 +0000
> data 88
> This commit was manufactured by cvs2svn to create tag
> 'T_BU_Problem_9xxx_Merge_3-21-2000'.
> merge :1000007126
> M 100755 :180810 mfcdev/Domedit/DlgAddAlias.h
> -- snap --
> 
> By my count, 88 is the ending single quote character, leaving the '.' to
> be interpreted as a command.
> 
> Looks like I should go post this on the cvs2svn list.....

Yes, that would be helpful. Please include enough information and data to enable me to reproduce your problem, because it is very mysterious.

The lines in question are (in Python)
    self.f.write('data %d\n' % (len(log_msg),))
    self.f.write('%s\n' % (log_msg,))

where self.f is a file that was opened in binary mode, and log_msg is an 8-bit or unicode string. Since the log message is being output to a binary file, f.write() should squeal if the string includes any non-ascii characters (I just verified this with Python 2.2, 2.4, and 2.5). Nevertheless, I suspect that your problem is caused by some kind of character encoding problem, perhaps dependent on platform or Python version.

You might also try the trunk version of cvs2svn; there have been a lot of changes to cvs2git since release 2.1.1--even a new command that is actually called cvs2git! (though for now you still need to use an options file to start conversions).

Michael

------------------------------------------------------ http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1670&dsMessageId=1044191

To unsubscribe from this discussion, e-mail: [users-unsubscribe@cvs2svn.tigris.org].
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 5 of 7 in “git fast-import problem converting from CVS with git 1.6.1 and cvs2svn 2.2.0”
  1. Kelly F. HickelJan 20, 2009
  2. Kelly F. HickelJan 20, 2009
  3. Kelly F. HickelJan 22, 2009
  4. Johannes SchindelinJan 22, 2009
  5. Michael HaggertyJan 23, 2009
  6. Johannes SchindelinJan 20, 2009
  7. Daniel BarkalowJan 20, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.