[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: cvs2svn.py: RuntimeError: Attempted to get textual contents of a *non*-file node.

From: Marko Macek <Marko.Macek_at_gmx.net>
Date: 2002-10-31 21:54:46 CET

Jani Averbach wrote:
> Hi!
>
> I converted 6 cvs repo to svn and everything was fine, until I tried 7th:
>
> committing: Thu May 17 16:11:48 2001, over 0 seconds
> changing 1.1 : /trunk/jpe/
> making dir: /trunk/jpe

The problem is with filenames that include spaces.

Try this patch:

--- V21/cvs2svn.py 2002-10-28 07:34:17.000000000 +0100
+++ cvs2svn.py 2002-10-31 21:46:17.000000000 +0100
@@ -640,7 +640,7 @@
    ntags = int(data[5])
    tags = data[6].split(' ', ntags + 1)
    nbranches = int(tags[ntags])
- branches = tags[ntags + 1].split(' ', nbranches + 1)
+ branches = tags[ntags + 1].split(' ', nbranches)
    fname = branches[nbranches][:-1]

    ##print "TAGS: ", ntags, repr(tags);

As usual, only lightly tested.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 31 21:56:52 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.