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

[PATCH] cvs2svn on windows

From: Russell Yanofsky <rey4_at_columbia.edu>
Date: 2003-06-14 04:35:04 CEST

Changes to cvs2svn.py and its regression testing script so they can work on
Windows. (All the tests pass, by the way, except for #2 "detection of the
executable flag" which must be a real doozie :)

* tools/cvs2svn/cvs2svn.py (relative_name): Changed this helper function to
  expect os.sep in the file path passed to it instead of forward slashes.
  Also added an assertion to detect incorrect usage.

  (add_or_change_path): got rid of the buffer size parameter to the os.popen()
  call which causes a strange error on windows: "ValueError: popen() arg 3
  must be -1"

  (pass3): Changed to sort the file listing in memory instead with the "sort"
  command on Windows. Original behavior is preserved on other platforms.

* tools/cvs2svn/run-tests.py (repos_to_url): Added missing slash detection.
  Needed because absolute paths on windows begin with a drive letter instead
  of a slash.

  (svn_strptime): new function to take the place of time.strptime, which
  doesn't exist on windows

  (Log.__init__): replaced time.strptime() call with svn_strptime() call.

begin 666 cvs2svn.diff
M26YD97@Z('1O;VQS+V-V<S)S=FXO8W9S,G-V;BYP>0H]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]"BTM+2!T;V]L<R]C=G,R<W9N+V-V<S)S=FXN<'D)*')E=FES
M:6]N(#8R,C$I"BLK*R!T;V]L<R]C=G,R<W9N+V-V<S)S=FXN<'D)*'=O<FMI
M;F<@8V]P>2D*0$ @+3(X-"PQ,2 K,C@T+#@@0$ *( H@9&5F(')E;&%T:79E
M7VYA;64H8W9S<F]O="P@9FYA;64I.@H@("!L(#T@;&5N*&-V<W)O;W0I"BT@
M(&EF(&9N86UE6SIL72 ]/2!C=G-R;V]T.@HM(" @(&EF(&9N86UE6VQ=(#T]
M("<O)SH*+2 @(" @(')E='5R;B!F;F%M95ML*S$Z70HM(" @(')E='5R;B!F
M;F%M95ML.ET*+2 @<F5T=7)N(&P**R @87-S97)T(&9N86UE6SIL72 ]/2!C
M=G-R;V]T(&%N9"!F;F%M95ML72 ]/2!O<RYS97 **R @<F5T=7)N('-T<FEN
M9RYR97!L86-E*&9N86UE6VPK,3I=+"!O<RYS97 L("<O)RD*( H@9&5F('9I
M<VET7V9I;&4H87)G+"!D:7)N86UE+"!F:6QE<RDZ"B @(&-D+"!P+"!S=&%T
M<R ](&%R9PI 0" M-S8W+#<@*S<V-"PW($! "B @(" @(R,C('5S92!I="!T
M;R!S970@<W9N.FUI;64M='EP92X*( H@(" @(&)A<V5N86UE(#T@;W,N<&%T
M:"YB87-E;F%M92AR8W-?9FEL95LZ+3)=*0HM(" @('!I<&4@/2!O<RYP;W!E
M;B@G8V\@+7$@+7 E<R!<)R5S7"<G("4@*&-V<U]R978L(')C<U]F:6QE*2P@
M)W(G+" Q,#(T,# I"BL@(" @<&EP92 ](&]S+G!O<&5N*"=C;R M<2 M<"5S
M("(E<R(G("4@*&-V<U]R978L(')C<U]F:6QE*2P@)W(G*0H@"B @(" @(R!9
M;W4@;6EG:'0@=&AI;FL@=V4@8V]U;&0@:G5S="!T97-T"B @(" @(PI 0" M
M,3(W."PW("LQ,C<U+#<@0$ *(" @(R!R96%D('1H92!R97-Y;F,@9&%T82!F
M:6QE"B @(')E<WEN8R ](')E861?<F5S>6YC*&-T>"YL;V=?9FYA;65?8F%S
M92 K(%)%4UE.0U]3549&25@I"B *+2 @;W5T<'5T(#T@;W!E;BAC='@N;&]G
M7V9N86UE7V)A<V4@*R!#3$5!3E]215937U-51D9)6"P@)W<G*0HK("!O=71P
M=70@/2!O<&5N*&-T>"YL;V=?9FYA;65?8F%S92 K($-,14%.7U)%5E-?4U5&
M1DE8+" G=W0G*0H@"B @(",@<')O8V5S<R!T:&4@<F5V:7-I;VYS(&9I;&4L
M(&QO;VMI;F<@9F]R(&ET96US('1O(&-L96%N('5P"B @(&9O<B!L:6YE(&EN
M(&9I;&5I;G!U="Y&:6QE26Y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F5P;W-?=&]?=7)L*'!A=&A?=&]?
M<W9N7W)E<&]S*3H*(" @(B(B5&AI<R!D;V5S('=H870@>6]U('1H:6YK(&ET
M(&1O97,N(B(B"BT@(')E='5R;B G9FEL93HO+R5S)R E(&]S+G!A=&@N86)S
M<&%T:"AP871H7W1O7W-V;E]R97!O<RD**R @<G!A=&@@/2!O<RYP871H+F%B
M<W!A=&@H<&%T:%]T;U]S=FY?<F5P;W,I"BL@(&EF(')P871H6S!=("$]("<O
M)SH**R @("!R<&%T:" ]("<O)R K(')P871H"BL@(')E='5R;B G9FEL93HO
M+R5S)R E(')P871H"B **VEF(&AA<V%T='(H=&EM92P@)W-T<G!T:6UE)RDZ
M"BL@(&1E9B!S=FY?<W1R<'1I;64H=&EM97-T<BDZ"BL@(" @<F5T=7)N('1I
M;64N<W1R<'1I;64H=&EM97-T<BP@)R59+25M+25D("5(.B5-.B53)RD**V5L
M<V4Z"BL@(%]R95]R979?9&%T92 ](')E+F-O;7!I;&4H)RA;,"TY77LT?2DM
M*%LP+3E=6S M.5TI+2A;,"TY75LP+3E=*2 G"BL@(" @(" @(" @(" @(" @
M(" @(" @(" @(" @)RA;,"TY75LP+3E=*3HH6S M.5U;,"TY72DZ*%LP+3E=
M6S M.5TI)RD**R @9&5F('-V;E]S=')P=&EM92AT:6UE<W1R*3H**R @("!M
M871C:&5S(#T@7W)E7W)E=E]D871E+FUA=&-H*'1I;65S='(I+F=R;W5P<R@I
M"BL@(" @<F5T=7)N('1U<&QE*&UA<"AI;G0L(&UA=&-H97,I*2 K("@P+" Q
M+" P*0H@"B!C;&%S<R!,;V<Z"B @(&1E9B!?7VEN:71?7RAS96QF+"!R979I
M<VEO;BP@875T:&]R+"!D871E*3H*0$ @+3$P,"PW("LQ,3(L-R! 0 H@(" @
M(",*(" @(" C(&%N9"!T:6UE+FUK=&EM92@I(&-O;G9E<G1S(&9R;VT@;&]C
M86QT:6UE+"!I="!A;&P@=V]R:W,@;W5T('9E<GD*(" @(" C(&AA<'!I;'DN
M"BT@(" @<V5L9BYD871E(#T@=&EM92YM:W1I;64H=&EM92YS=')P=&EM92AD
M871E6S Z,3E=+" B)5DM)6TM)60@)4@Z)4TZ)5,B*2D**R @("!S96QF+F1A
M=&4@/2!T:6UE+FUK=&EM92AS=FY?<W1R<'1I;64H9&%T95LP.C$Y72DI"B *
M(" @(" C(%1H92!C:&%N9V5D('!A=&AS('=I;&P@8F4@86-C=6UU;&%T960@
M;&%T97(L(&%S(&QO9R!D871A(&ES(')E860N"B @(" @(R!+97ES(&AE<F4@
M87)E('!A=&AS('-U8V@@87,@)R]T<G5N:R]F;V\O8F%R)RP@=F%L=65S(&%R
)92!L971T97(*
`
end

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Jun 14 04:37:19 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.