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

Re: [OT] Re: VSS to SVN migration script

From: Toby Johnson <toby_at_etjohnson.us>
Date: 2004-05-20 20:30:59 CEST

Nathan Kidd wrote:

> This can be solved by using ss.exe's -o@ option to output to a file
> and then read the data from the file. No hard wrapping occurs. This
> is particularly important not just for comments: if you have really
> long paths in VSS they also will be hard-wrapped! Attached is my patch
> for vss2svn.py to do this. (vss2svn.py.patch.nohardwrap)
> ...
>
>+# Types of ss history output lines for a file object's data:
>+#-----------------------------------------------------------
>+
>+#***** FileName.ext ***** ; first line
>+#Version 229 ; revision number
>+#User: username Date: 3/12/02 Time: 3:48p ; info line, in every rev.
>+#Checked in $/basedir ;
>+#Branched ; file dup of dir rev message
>+#Rolled back ; ignore, history was purged
>+#Comment: -item 1 fixed ; always last, CR/LF not
>+#-item 2 fixed ; escaped: keep reading lines
>+
>
>
Thanks a lot Nathan, this should be a help for me. I didn't know about
the -o@ VSS option either, but heck, why not slow down the script even
more by writing all history output to a file? :) It'd be worth it to me
though not to introduce all those line breaks.

I'm not too interested in directory history comments since I just import
the entire directory structure to begin with. I can probably just ignore
the branch stuff, but the label stuff might be sorta tricky. What I
don't understand, though, is the lines with the filename embedded within
the asterisks. Do you get this sort of output when viewing the history
on only one file at a time (which is what my script does)? I had only
ever seen the *version number* in the asterisks line.

It would still probably help if I could see the entire output from a "ss
HISTORY" command of a single file which has file labels, inherited
parent directory labels, branches, and whatever else is possible. It
helps to see not only what can be output, but the order I can expect
them to appear in.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 20 20:42:21 2004

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

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