Patch for identify binary file attributes from CVSNT

Filipe Borges <[email protected]> Thu, 18 Apr 2013 11:11:51 -0300
Newsgroups gmane.comp.version-control.subversion.cvs2svn.devel
Message-ID <[email protected]>
------=_Part_375_1961805571.1366320083529
Content-Type: multipart/alternative; 
	boundary="----=_Part_376_1749799406.1366320083530"

------=_Part_376_1749799406.1366320083530
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable

Hello,

I am in the middle of the migrating process of our corporative CVSNT reposi=
tories to SVN and found that cvs2svn can't identify binary files in CVSNT.
After a little research I could solve this adding some lines to the python =
parser.
Please find the patch attached.

LICENSE: This patch is licensed in the terms of cvs2svn own license.

Regards
--
Filipe Borges
Banrisul - UDS
51 3215 3982


________________________________
As informa??es s?o destinadas exclusivamente ?(s) pessoa(s) indicada(s), se=
ndo que os dados podem ser confidenciais
e n?o podem ser alterados, copiados, divulgados, utilizados, parcial ou tot=
almente, por pessoas n?o autorizadas,
sendo seu sigilo protegido por lei. Caso n?o seja o destinat?rio providenci=
e a exclus?o da mensagem e do(s) anexo(s)
e notifique o remetente da ocorr?ncia. O uso impr?prio desta ser? tratado d=
e acordo com as normas da empresa e da
legisla??o em vigor. Por fim, essa mensagem e anexo(s) n?o reflete(m) neces=
sariamente o ju?zo do Banrisul.

The contents of this message is intended only to the addressees, and it may=
 contain confidential information
which cannot be edited, copied, published, used, partially or totally, by u=
nauthorized people, being
its secrecy protected by law. If you are not the intended recipient of this=
 message, delete this message and its attachments
and notify this event to its sender. The improper use of this will be treat=
ed according to company policies
and current legislation. Finally, this message and its attachments do not n=
ecessarily reflect the views of Banrisul.

------------------------------------------------------
http://cvs2svn.tigris.org/ds/viewMessage.do?dsForumId=3D1667&dsMessageId=3D=
3053606

To unsubscribe from this discussion, e-mail: [[email protected]=
s.org].
------=_Part_376_1749799406.1366320083530
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40"><head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
=09{font-family:Calibri;
=09panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
=09{font-family:Tahoma;
=09panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
=09{margin:0cm;
=09margin-bottom:.0001pt;
=09font-size:11.0pt;
=09font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
=09{mso-style-priority:99;
=09color:blue;
=09text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
=09{mso-style-priority:99;
=09color:purple;
=09text-decoration:underline;}
span.EstiloDeEmail17
=09{mso-style-type:personal-compose;
=09font-family:"Calibri","sans-serif";
=09color:windowtext;}
.MsoChpDefault
=09{mso-style-type:export-only;}
@page WordSection1
=09{size:612.0pt 792.0pt;
=09margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
=09{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"PT-BR" link=3D"blue" vlink=3D"purple">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span lang=3D"EN-US">Hello,<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">I am in the middle of the migra=
ting process of our corporative CVSNT repositories to SVN and found that cv=
s2svn can&#8217;t identify binary files in CVSNT.<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">After a little research I could=
 solve this adding some lines to the python parser.
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">Please find the patch attached.=
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US">LICENSE: This patch is licensed=
 in the terms of cvs2svn own license.
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span lang=3D"EN-US"><o:p>&nbsp;</o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;;color:black">Regards<o:p></o:p></span></p=
>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;;color:black">--<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;;color:black">Filipe Borges<o:p></o:p></sp=
an></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;;color:black">Banrisul&nbsp;- UDS<o:p></o:=
p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:&quot;Ta=
homa&quot;,&quot;sans-serif&quot;;color:black">51 3215
<b>3982</b><o:p></o:p></span></p>
<p class=3D"MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<br>
<hr>
<font face=3D"Arial" color=3D"Gray" size=3D"1">As informa&ccedil;&otilde;es=
 s&atilde;o destinadas exclusivamente &agrave;(s) pessoa(s) indicada(s), se=
ndo que os dados podem ser confidenciais<br>
e n&atilde;o podem ser alterados, copiados, divulgados, utilizados, parcial=
 ou totalmente, por pessoas n&atilde;o autorizadas,<br>
sendo seu sigilo protegido por lei. Caso n&atilde;o seja o destinat&aacute;=
rio providencie a exclus&atilde;o da mensagem e do(s) anexo(s)<br>
e notifique o remetente da ocorr&ecirc;ncia. O uso impr&oacute;prio desta s=
er&aacute; tratado de acordo com as normas da empresa e da<br>
legisla&ccedil;&atilde;o em vigor. Por fim, essa mensagem e anexo(s) n&atil=
de;o reflete(m) necessariamente o ju&iacute;zo do Banrisul.<br>
<br>
The contents of this message is intended only to the addressees, and it may=
 contain confidential information<br>
which cannot be edited, copied, published, used, partially or totally, by u=
nauthorized people, being<br>
its secrecy protected by law. If you are not the intended recipient of this=
 message, delete this message and its attachments<br>
and notify this event to its sender. The improper use of this will be treat=
ed according to company policies<br>
and current legislation. Finally, this message and its attachments do not n=
ecessarily reflect the views of Banrisul.<br>
</font>
</body>
</html>

------=_Part_376_1749799406.1366320083530--

------=_Part_375_1961805571.1366320083529
Content-Type: application/octet-stream; name=cvsnt-binaryattr.patch
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=cvsnt-binaryattr.patch; size=564; 
	creation-date="Thu, 18 Apr 2013 13:56:42 GMT"; 
	modification-date="Thu, 18 Apr 2013 13:58:35 GMT"
Content-Description: cvsnt-binaryattr.patch

LS0tIGN2czJzdm5fcmNzcGFyc2UvY29tbW9uLnB5CUZyaSBKYW4gMjcgMDk6NTU6MTEgMjAxMg0K
KysrIGN2czJzdm5fcmNzcGFyc2UvY29tbW9uLnB5CVRodSBBcHIgMTggMTA6MDQ6MzEgMjAxMw0K
QEAgLTQxMCw2ICs0MTAsMTQgQEANCiAgICAgIyB0aGlzIGlzICJuZXdwaHJhc2UiIGluIFJDU0ZJ
TEUoNSkuIHdlIGp1c3Qgd2FudCB0byBza2lwIG92ZXIgdGhlc2UuDQogICAgIHdoaWxlIDE6DQog
ICAgICAgdG9rZW4gPSBzZWxmLnRzLmdldCgpDQorICAgICAgDQorICAgICAgIyBjb25zdW1lIGtv
cHQgZnJvbSBDVlNOVA0KKyAgICAgIGlmIHRva2VuID09ICdrb3B0JzoNCisgICAgICAgIHRva2Vu
ID0gc2VsZi50cy5nZXQoKQ0KKyAgICAgICAgc2VsZi5zaW5rLnNldF9leHBhbnNpb24odG9rZW4p
DQorICAgICAgICBzZWxmLnRzLm1hdGNoKCc7JykNCisgICAgICAgIGNvbnRpbnVlDQorICAgICAg
ICANCiAgICAgICBpZiB0b2tlbiA9PSAnZGVzYycgb3IgdG9rZW5bMF0gaW4gc3RyaW5nLmRpZ2l0
czoNCiAgICAgICAgIHNlbGYudHMudW5nZXQodG9rZW4pDQogICAgICAgICBicmVhaw0K
------=_Part_375_1961805571.1366320083529--