CVS2SVN import from CVSNT
Sean Ryan <[email protected]> Mon, 8 Jul 2013 13:16:44 -0400
| Newsgroups | gmane.comp.version-control.subversion.cvs2svn.devel |
|---|---|
| Message-ID | <CAKT4chAnkcSjFwJ-oGywLncFeNSdQ32V-siHhHk=os2fd74W3w@mail.gmail.com> |
------=_Part_1069_574871692.1373309578075
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hello,
I too am trying to use cvs2svn against a cvsnt repo.. I have read other
articles on it, and have seen the issues (and also some of the patches).
The patches that I found after coding this one share one thing in common,
they either use all or one of the kopt flags for the entire file.. I chose
a different method, I choose simply to see if binary was EVER used on this
file. If so, I treated it as binary. (it would be good to create a log of
file that have heterogeneous flags, but that was a bit beyond my grasp of
python in the time I wanted to take.. :) )
I'd love to know what you think about this..
This is my fix from common.py:
while 1:
token = self.ts.get()
if token == 'desc' or token[0] in string.digits:
self.ts.unget(token)
break
elif token == 'kopt':
# Added By Sean Ryan to import CVSNT kopt flags:, if ever a
binary, always a binary
tokenvalue = self.ts.get()
self.ts.unget(tokenvalue)
if tokenvalue == 'b':
self._parse_admin_expand(token)
self.ts.unget(';')
# consume everything up to the semicolon
self._read_until_semicolon()
------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=1667&dsMessageId=3060021
To unsubscribe from this discussion, e-mail: [[email protected]].
------=_Part_1069_574871692.1373309578075
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hello,<div>=A0 I too am trying to use cvs2svn against a cvsnt repo.. =A0I h=
ave read other articles on it, and have seen the issues (and also some of t=
he patches). =A0The patches that I found after coding this one share one th=
ing in common, they either use all or one of the kopt flags for the entire =
file.. =A0I chose a different method, I choose simply to see if binary was =
EVER used on this file. If so, I treated it as binary. =A0(it would be good=
to create a log of file that have heterogeneous flags, but that was a bit =
beyond my grasp of python in the time I wanted to take.. :) )</div>
<div><br></div><div>I'd love to know what you think about this.. =A0</d=
iv><div><br><div class=3D"gmail_quote"><div>This is my fix from common.py:<=
/div><div><br></div><div><div>=A0 =A0 while 1:</div>
<div>=A0 =A0 =A0 token =3D self.ts.get()</div><div>=A0 =A0 =A0 if token =3D=
=3D 'desc' or token[0] in string.digits:</div><div>=A0 =A0 =A0 =A0 =
self.ts.unget(token)</div><div>=A0 =A0 =A0 =A0 break</div><div>=A0 =A0 =A0 =
elif token =3D=3D 'kopt':</div>
<div>
=A0 =A0 =A0 =A0 # Added By Sean Ryan to import CVSNT kopt flags:, if ever a=
binary, always a binary</div><div>=A0 =A0 =A0 =A0 tokenvalue =3D self.ts.g=
et()</div><div>=A0 =A0 =A0 =A0 self.ts.unget(tokenvalue)</div><div>=A0 =A0 =
=A0 =A0 if tokenvalue =3D=3D 'b':</div>
<div>=A0 =A0 =A0 =A0 =A0 self._parse_admin_expand(token)</div><div>=A0 =A0 =
=A0 =A0 =A0 self.ts.unget(';')</div><div>=A0 =A0 =A0 # consume ever=
ything up to the semicolon</div><div>=A0 =A0 =A0 self._read_until_semicolon=
()</div></div><div><br></div>
</div><br></div>
------=_Part_1069_574871692.1373309578075--