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

cvs2svn.py completes, but repository filenames contain backslashes

From: Francois Beausoleil <fbos_at_users.sourceforge.net>
Date: 2003-07-24 17:09:43 CEST

Hi !

Well, I believe I found another problem with cvs2svn.py on Win32. Here's
a
look at what was in the repos after I converted a single file:

E:\svn-trunk\tools\examples>svnshell.py
E:\svn-trunk\tools\cvs2svn\tmp\repos
<rev: 18 />$ cd branches/rel-0-5a
<rev: 18 /branches/rel-0-5a>$ ls
   REV AUTHOR NODE-REV-ID SIZE DATE NAME
----------------------------------------------------------------------------
     1 fbos < 2.0.1> 0 Jul 29 13:03 \jgb\RELEASING.txt
<rev: 18 /branches/rel-0-5a>$ cat RELEASING.txt
Path '/branches/rel-0-5a/RELEASING.txt' does not exist.
<rev: 18 /branches/rel-0-5a>$ cd jgb
Path '/branches/rel-0-5a/jgb' is not a valid filesystem directory.
<rev: 18 /branches/rel-0-5a>$ ls
   REV AUTHOR NODE-REV-ID SIZE DATE NAME
----------------------------------------------------------------------------
     1 fbos < 2.0.1> 0 Jul 29 13:03 \jgb\RELEASING.txt
<rev: 18 /branches/rel-0-5a>$ cat \jgb\RELEASING.txt

<rev: 18 /branches/rel-0-5a>$ exit

There are two problems here. One of them is probably easier to fix than
the other:
1. The *filename* contains backslashes. It looks like cvs2svn.py did
not
understand that \ was a path separator, and used these as regular
characters
in the filename. This is probably the easier problem to fix.

2. The file actually contains the instructions on how to do a release.
So,
the file has content. The shell trace above shows no content. Probably
because of the backslashes. They are not properly interpreted. This is
probably a non-issue, as the filenames should not contain the backslashes
in the first place.

Now, let me see if I can correct at least one of the problems. What I
would apply as a fix for #1 above would be to check the paths before
entering them in the dump file. I would convert \ to /. Should this be
done on all platforms, or only on Win32 ?

Have a nice day !
François

====== cvs2svn.py log - Converting a CVS repository with a single file
====== in it, on Win2K SP3
E:\svn-trunk\tools\cvs2svn>cvs2svn.py --trunk-only -s
E:\svn-trunk\tools\cvs2svn\tmp\repos jgb
----- pass 1 -----
jgb\jgb\RELEASING.txt,v
----- pass 2 -----
----- pass 3 -----
----- pass 4 -----
committing: Mon Jul 29 13:03:45 2002, over 0 seconds
    adding or changing 1.1 : trunk/\jgb\RELEASING.txt
    new revision: 1
committing: Wed Sep 04 19:56:24 2002, over 0 seconds
    adding or changing 1.2 : trunk/\jgb\RELEASING.txt
    new revision: 2
committing: Wed Sep 04 20:35:04 2002, over 0 seconds
    adding or changing 1.3 : trunk/\jgb\RELEASING.txt
    new revision: 3
committing: Wed Sep 04 20:43:36 2002, over 0 seconds
    adding or changing 1.4 : trunk/\jgb\RELEASING.txt
    new revision: 4
committing: Wed Sep 04 20:45:12 2002, over 0 seconds
    adding or changing 1.5 : trunk/\jgb\RELEASING.txt
    new revision: 5
committing: Wed Sep 04 20:46:06 2002, over 0 seconds
    adding or changing 1.6 : trunk/\jgb\RELEASING.txt
    new revision: 6
committing: Tue Jun 17 13:50:30 2003, over 0 seconds
    adding or changing 1.7 : trunk/\jgb\RELEASING.txt
    new revision: 7
committing: Thu Jun 19 00:56:31 2003, over 0 seconds
    adding or changing 1.8 : trunk/\jgb\RELEASING.txt
    new revision: 8
committing: Sun Jun 29 21:33:48 2003, over 0 seconds
    adding or changing 1.9 : trunk/\jgb\RELEASING.txt
    new revision: 9
committing: Sun Jun 29 22:34:29 2003, over 0 seconds
    adding or changing 1.10 : trunk/\jgb\RELEASING.txt
    new revision: 10
committing: Mon Jun 30 00:15:13 2003, over 0 seconds
    adding or changing 1.11 : trunk/\jgb\RELEASING.txt
    new revision: 11
Finishing branches:
finishing 'post-referer-tracking' as branch
finishing 'rel-0-6a' as branch
finishing 'pre-cruft-removal' as branch
finishing 'rel-0-5a' as branch
finishing 'pre-referer-tracking' as branch
finishing 'rel-0-6-5a' as branch
finishing 'post-xsl-change' as branch
Finishing tags:
finishing 'post-referer-tracking' as tag
finishing 'rel-0-6a' as tag
finishing 'pre-cruft-removal' as tag
finishing 'rel-0-5a' as tag
finishing 'pre-referer-tracking' as tag
finishing 'rel-0-6-5a' as tag
finishing 'post-xsl-change' as tag
----- pass 5 -----
loading cvs2svn-dump into E:\svn-trunk\tools\cvs2svn\tmp\repos
<<< Started new txn, based on original revision 1
     * adding path : trunk ... done.
     * adding path : trunk/\jgb\RELEASING.txt ... done.

------- Committed revision 1 >>>

<<< Started new txn, based on original revision 2
     * editing path : trunk/\jgb\RELEASING.txt ... done.

------- Committed revision 2 >>>

<<< Started new txn, based on original revision 3
     * editing path : trunk/\jgb\RELEASING.txt ... done.

------- Committed revision 3 >>>

<<< Started new txn, based on original revision 4
     * editing path : trunk/\jgb\RELEASING.txt ... done.

------- Committed revision 4 >>>

<<< Started new txn, based on original revision 5
     * editing path : trunk/\jgb\RELEASING.txt ... done.

------- Committed revision 5 >>>

<<< Started new txn, based on original revision 6
     * editing path : trunk/\jgb\RELEASING.txt ... done.

------- Committed revision 6 >>>

<<< Started new txn, based on original revision 7
     * editing path : trunk/\jgb\RELEASING.txt ... done.

------- Committed revision 7 >>>

<<< Started new txn, based on original revision 8
     * editing path : trunk/\jgb\RELEASING.txt ... done.

------- Committed revision 8 >>>

<<< Started new txn, based on original revision 9
     * editing path : trunk/\jgb\RELEASING.txt ... done.

------- Committed revision 9 >>>

<<< Started new txn, based on original revision 10
     * editing path : trunk/\jgb\RELEASING.txt ... done.

------- Committed revision 10 >>>

<<< Started new txn, based on original revision 11
     * editing path : trunk/\jgb\RELEASING.txt ... done.

------- Committed revision 11 >>>

<<< Started new txn, based on original revision 12
     * adding path : branches ... done.
     * adding path : branches/rel-0-5a ...COPIED... done.

------- Committed revision 12 >>>

<<< Started new txn, based on original revision 13
     * adding path : tags ... done.
     * adding path : tags/post-referer-tracking ...COPIED... done.

------- Committed revision 13 >>>

<<< Started new txn, based on original revision 14
     * adding path : tags/rel-0-6a ...COPIED... done.

------- Committed revision 14 >>>

<<< Started new txn, based on original revision 15
     * adding path : tags/pre-cruft-removal ...COPIED... done.

------- Committed revision 15 >>>

<<< Started new txn, based on original revision 16
     * adding path : tags/pre-referer-tracking ...COPIED... done.

------- Committed revision 16 >>>

<<< Started new txn, based on original revision 17
     * adding path : tags/rel-0-6-5a ...COPIED... done.

------- Committed revision 17 >>>

<<< Started new txn, based on original revision 18
     * adding path : tags/post-xsl-change ...COPIED... done.

------- Committed revision 18 >>>

pass 1: 0 seconds
pass 2: 0 seconds
pass 3: 0 seconds
pass 4: 1 seconds
pass 5: 9 seconds
 total: 10 seconds
Developer of Java Gui Builder
http://jgb.sourceforge.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Jul 24 17:10:42 2003

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.