纯java实现的开源 SVN客户端
From Evernote: |
纯java实现的开源 SVN客户端 - GeekGao的日志 - 网易博客Clipped from: http://eatsalt.blog.163.com/blog/static/879402662009102402949523/ |
纯java实现的开源 SVN客户端
<span style="background-repeat: initial initial;margin-top:0px;margin-right:2px;margin-bottom:0px;margin-left:2px;font-size:12px;">2009-11-24 12:29:49</span><span style="background-repeat: initial initial;margin-top:0px;margin-right:2px;margin-bottom:0px;margin-left:2px;font-size:12px;">| 分类:</span>
<a shape="rect" href="http://eatsalt.blog.163.com/blog/#m=0&t=1&c=fks087071093084085067082083080095092081088071084084080069" title="Java" style="background-repeat: initial initial;color:rgb(22, 44, 19);cursor:pointer;text-decoration:none;font-size:12px;" target="blank">Java</a>
</span>
<span style="background-repeat: initial initial;float:right;color:rgb(91, 132, 58);"><span style="background-repeat: initial initial;margin-top:0px;margin-right:2px;margin-bottom:0px;margin-left:2px;font-size:12px;">|</span><span style="background-repeat: initial initial;color:rgb(22, 44, 19);position:relative;cursor:default;font-size:12px;">字号</span></span><span style="background-repeat: initial initial;cursor:pointer;float:right;color:rgb(22, 44, 19);"><span style="background-image:url(http://eatsalt.blog.163.com/blog/images/icon.png?v=20110815);background-repeat: no-repeat no-repeat;background-position-x:-360px;background-position-y:-380px;display:inline-block;zoom:1;width:20px;height:20px;line-height:20px;font-size:12px;"> </span><a shape="rect" style="background-repeat: initial initial;color:rgb(22, 44, 19);cursor:pointer;text-decoration:none;font-size:12px;">订阅</a></span>
</p><div style="background-repeat: initial initial;clear:both;width:0px;height:0px;"></div>
</div>
</div>
</div>
<div style="background-repeat: initial initial;font-size:12px;">
</div>
<div></div>
<div style="background-repeat: initial initial;line-height:180%;font-size:14px;text-align:left;word-wrap:break-word;color:rgb(23, 61, 94);margin-top:15px;margin-right:0px;margin-bottom:15px;margin-left:0px;padding-top:5px;padding-right:0px;padding-bottom:5px;padding-left:0px;overflow-x:hidden;overflow-y:hidden;"><font size="3" style="background-repeat: initial initial;line-height:180%;font-size:16px;color:rgb(128, 128, 0);"><span style="background-repeat: initial initial;line-height:180%;font-size:16px;"><span style="background-repeat: initial initial;line-height:180%;font-size:16px;color:rgb(0, 51, 102);"> 一个月前,公司计划要做个内部使用的项目托管站点,后来因为人员、时间等原因就搁置了。通过Google发现了一个很好的解决方案 ,这就是: </span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>SVNKit</span> 是一个完全基于Java的Subversion开源工具库。<span style="background-repeat: initial initial;line-height:180%;font-size:16px;">SVNKit</span>支持Java API控制和操作Subversion工作拷贝和资源。<span style="background-repeat: initial initial;line-height:180%;font-size:16px;">SVNKit</span>支持http,https,svn 和 svn+ssh连接协议等。 <br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>通过<span style="background-repeat: initial initial;line-height:180%;font-size:16px;">SVNKit</span>,你可以很容易的操作控制Subversion。 </font> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/><div style="background-repeat: initial initial;line-height:180%;font-size:12px;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:silver;border-right-color:silver;border-bottom-color:silver;border-left-color:silver;"> <div style="background-repeat: initial initial;line-height:180%;font-size:12px;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:silver;padding-top:5px;padding-right:5px;padding-bottom:5px;padding-left:5px;background-color:rgb(249, 249, 249);"> <a shape="rect" target="blank" rel="nofollow" href="http://xiudaima.appspot.com/co%3Cwbr%3Ede/detail/136004" style="background-repeat: initial initial;color:rgb(60, 63, 54);line-height:180%;text-decoration:none;"><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><dfn style="background-repeat: initial initial;line-height:180%;"></dfn></a> </div> <div style="background-repeat: initial initial;line-height:180%;font-size:12px;"> <div style="background-repeat: initial initial;line-height:180%;width:100%;overflow-y:hidden;overflow-x:auto;"><table style="background-repeat: initial initial;line-height:180%;border-collapse:collapse;width:100%;"><tr style="background-repeat: initial initial;line-height:180%;"><td colspan="1" rowspan="1" style="background-repeat: initial initial;line-height:180%;border-right-width:1px;border-right-style:solid;border-right-color:rgb(221, 221, 221);overflow-x:visible;overflow-y:visible;width:18px;color:gray;background-color:rgb(221, 238, 255);text-align:right;"><pre style="background-repeat: initial initial;line-height:1.333;font-size:12px;margin-top:0pt;margin-right:0pt;margin-bottom:0pt;margin-left:0pt;overflow-x:visible;overflow-y:visible;width:auto;clear:none;float:none;" xml:space="preserve"> 1<br clear="none" style="background-repeat: initial initial;line-height:180%;"/> 2<br clear="none" style="background-repeat: initial initial;line-height:180%;"/> 3<br clear="none" style="background-repeat: initial initial;line-height:180%;"/> 4<br clear="none" style="background-repeat: initial initial;line-height:180%;"/><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(248, 16, 176);"> 5</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> 6<br clear="none" style="background-repeat: initial initial;line-height:180%;"/> 7<br clear="none" style="background-repeat: initial initial;line-height:180%;"/> 8<br clear="none" style="background-repeat: initial initial;line-height:180%;"/> 9<br clear="none" style="background-repeat: initial initial;line-height:180%;"/><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(248, 16, 176);">10</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>11<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>12<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>13<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>14<br clear="none" style="background-repeat: initial initial;line-height:180%;"/><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(248, 16, 176);">15</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>16<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>17<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>18<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>19<br clear="none" style="background-repeat: initial initial;line-height:180%;"/><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(248, 16, 176);">20</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>21<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>22<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>23<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>24<br clear="none" style="background-repeat: initial initial;line-height:180%;"/><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(248, 16, 176);">25</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>26<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>27<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>28<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>29<br clear="none" style="background-repeat: initial initial;line-height:180%;"/><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(248, 16, 176);">30</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>31<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>32<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>33<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>34<br clear="none" style="background-repeat: initial initial;line-height:180%;"/><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(248, 16, 176);">35</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>36<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>37<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>38<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>39<br clear="none" style="background-repeat: initial initial;line-height:180%;"/><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(248, 16, 176);">40</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>41<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>42<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>43<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>44<br clear="none" style="background-repeat: initial initial;line-height:180%;"/><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(248, 16, 176);">45</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>46<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>47<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>48<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>49<br clear="none" style="background-repeat: initial initial;line-height:180%;"/><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(248, 16, 176);">50</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>51<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>52<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>53<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>54<br clear="none" style="background-repeat: initial initial;line-height:180%;"/><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(248, 16, 176);">55</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>56<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>57<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>58<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>59<br clear="none" style="background-repeat: initial initial;line-height:180%;"/><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(248, 16, 176);">60</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>61<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>62<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>63<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>64<br clear="none" style="background-repeat: initial initial;line-height:180%;"/><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(248, 16, 176);">65</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>66<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>67<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>68<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>69<br clear="none" style="background-repeat: initial initial;line-height:180%;"/><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(248, 16, 176);">70</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>71<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>72<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>73<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>74<br clear="none" style="background-repeat: initial initial;line-height:180%;"/><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(248, 16, 176);">75</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>76<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>77<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>78<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>79<br clear="none" style="background-repeat: initial initial;line-height:180%;"/><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(248, 16, 176);">80</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>81<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>82<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>83<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>84<br clear="none" style="background-repeat: initial initial;line-height:180%;"/><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(248, 16, 176);">85</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>86<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>87<br clear="none" style="background-repeat: initial initial;line-height:180%;"/>88</pre></td><td colspan="1" rowspan="1" style="background-repeat: initial initial;line-height:180%;font-size:12px;padding-top:2px;padding-right:2px;padding-bottom:2px;padding-left:2px;vertical-align:top;"><div style="background-image:none;background-repeat: repeat repeat;line-height:25px;background-attachment:scroll;background-position-x:0%;background-position-y:0%;background-origin:initial;background-clip:initial;background-color:rgb(240, 243, 243);"><pre style="background-repeat: initial initial;line-height:1.333;font-size:12px;margin-top:0pt;margin-right:0pt;margin-bottom:0pt;margin-left:0pt;overflow-x:visible;overflow-y:visible;width:auto;clear:none;float:none;" xml:space="preserve">Java<span style="background-repeat: initial initial;line-height:180%;font-size:12px;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(255, 0, 0);border-right-color:rgb(255, 0, 0);border-bottom-color:rgb(255, 0, 0);border-left-color:rgb(255, 0, 0);">代码</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> File dstPath <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">new</span> File<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">"c:/svnkit"</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">);</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> SVNURL url <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> SVNURL<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> parseURIEncoded<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">"http://svn.svnkit.com/repos/svnkit/branches/1.1.x/"</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">);</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> SVNClientManager cm <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> SVNClientManager<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">newInstance</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">();</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> SVNUpdateClient uc <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> cm<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">getUpdateClient</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">();</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> uc<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">doCheckout</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span>url<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> dstPath<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> SVNRevision<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">UNDEFINED</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> SVNRevision<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">HEAD</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">true</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">);</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> File dstPath <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">new</span> File<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">"c:/svnkit"</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">);</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> SVNURL url <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> SVNURL<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> parseURIEncoded<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">"http://svn.svnkit.com/repos/svnkit/branches/1.1.x/"</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">);</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> SVNClientManager cm <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> SVNClientManager<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">newInstance</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">();</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> SVNUpdateClient uc <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> cm<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">getUpdateClient</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">();</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> uc<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">doCheckout</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span>url<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> dstPath<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> SVNRevision<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">UNDEFINED</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> SVNRevision<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">HEAD</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">true</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">);</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>Updates it to the latest revision<span style="background-repeat: initial initial;line-height:180%;font-size:12px;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(255, 0, 0);border-right-color:rgb(255, 0, 0);border-bottom-color:rgb(255, 0, 0);border-left-color:rgb(255, 0, 0);">:</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>Java<span style="background-repeat: initial initial;line-height:180%;font-size:12px;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(255, 0, 0);border-right-color:rgb(255, 0, 0);border-bottom-color:rgb(255, 0, 0);border-left-color:rgb(255, 0, 0);">代码</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> uc<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">doUpdate</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span>dstPath<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> SVNRevision<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">HEAD</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">true</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">);</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>uc<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">doUpdate</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span>dstPath<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> SVNRevision<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">HEAD</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">true</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">);</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>And <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">finally</span> commits local changes in <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">"www"</span> subdirectory <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">if</span> there are any<span style="background-repeat: initial initial;line-height:180%;font-size:12px;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(255, 0, 0);border-right-color:rgb(255, 0, 0);border-bottom-color:rgb(255, 0, 0);border-left-color:rgb(255, 0, 0);">:</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>Java<span style="background-repeat: initial initial;line-height:180%;font-size:12px;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(255, 0, 0);border-right-color:rgb(255, 0, 0);border-bottom-color:rgb(255, 0, 0);border-left-color:rgb(255, 0, 0);">代码</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> SVNCommitClient cc <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> cm<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">getCommitClient</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">();</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> cc<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">doCommit</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">new</span> File<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">[]</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">{</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">new</span> File<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span>dstPath<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">"www"</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">)},</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">false</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">"message"</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">false</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">true</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">);</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> SVNCommitClient cc <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> cm<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">getCommitClient</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">();</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> cc<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">doCommit</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">new</span> File<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">[]</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">{</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">new</span> File<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span>dstPath<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">"www"</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">)},</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">false</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">"message"</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">false</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">true</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">);</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>Access Subversion repository <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(160, 160, 0);">directly:</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>Java<span style="background-repeat: initial initial;line-height:180%;font-size:12px;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(255, 0, 0);border-right-color:rgb(255, 0, 0);border-bottom-color:rgb(255, 0, 0);border-left-color:rgb(255, 0, 0);">代码</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> SVNURL url <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> SVNURL<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">parseURIEncoded</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">"http://svn.svnkit.com/repos/svnkit/branches/1.1.x/"</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">);</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> SVNRepository repos <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> SVNRepositoryFactory<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">create</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span>url<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">);</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(176, 0, 64);">long</span> headRevision <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> repos<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">getLatestRevision</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">();</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> Collection entriesList <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> repos<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">getDir</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">"www"</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> headRevision<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">null</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span>Collection<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">)</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">null</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">);</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">for</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span>Iterator entries <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> entriesList<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">iterator</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">();</span> entries<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">hasNext</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">();)</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">{</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> SVNDirEntry entry <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span>SVNDirEntry<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">)</span> entries<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">next</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">();</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> System<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">out</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">println</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">"entry: "</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">+</span> entry<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">getName</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">());</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> System<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">out</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">println</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">"last modified at revision: "</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">+</span> entry<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">getDate</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">()</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">+</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/><span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">" by "</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">+</span> entry<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">getAuthor</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">());</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">}</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> SVNURL url <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> SVNURL<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">parseURIEncoded</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">"http://svn.svnkit.com/repos/svnkit/branches/1.1.x/"</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">);</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> SVNRepository repos <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> SVNRepositoryFactory<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">create</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span>url<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">);</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(176, 0, 64);">long</span> headRevision <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> repos<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">getLatestRevision</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">();</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> Collection entriesList <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> repos<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">getDir</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">"www"</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> headRevision<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">null</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span>Collection<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">)</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">null</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">);</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(0, 128, 0);font-weight:bold;">for</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span>Iterator entries <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> entriesList<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">iterator</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">();</span> entries<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">hasNext</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">();)</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">{</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> SVNDirEntry entry <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span>SVNDirEntry<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">)</span> entries<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">next</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">();</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> System<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">out</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">println</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">"entry: "</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">+</span> entry<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">getName</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">());</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> System<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">out</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">println</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">"last modified at revision: "</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">+</span> entry<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">getDate</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">()</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">+</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">" by "</span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">+</span> entry<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">getAuthor</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">());</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">}</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>Replace JNI Subversion bindings with <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(160, 160, 0);">SVNKit:</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/>Java<span style="background-repeat: initial initial;line-height:180%;font-size:12px;border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:rgb(255, 0, 0);border-right-color:rgb(255, 0, 0);border-bottom-color:rgb(255, 0, 0);border-left-color:rgb(255, 0, 0);">代码</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(64, 128, 128);font-style:italic;">// pure Java implementation of the standard Subversion Java interface </span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> SVNClientInterface jniAPI <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> SVNClientImpl<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">newInstance</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">();</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(176, 0, 64);">byte</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">[]</span> contents <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> jniAPI<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">fileContent</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">"http://svn.svnkit.com/repos/svnkit/branches/1.1.x/changelog.txt"</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;color:rgb(102, 102, 102);"></span> Revision<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">HEAD</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">);</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(64, 128, 128);font-style:italic;">// pure Java implementation of the standard Subversion Java interface</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> SVNClientInterface jniAPI <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> SVNClientImpl<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">newInstance</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">();</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/> <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(176, 0, 64);">byte</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">[]</span> contents <span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">=</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> jniAPI<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">fileContent</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">(</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(186, 33, 33);">"http://svn.svnkit.com/repos/svnkit/branches/1.1.x/changelog.txt"</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">,</span> <br clear="none" style="background-repeat: initial initial;line-height:180%;"/> Revision<span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">.</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(125, 144, 41);">HEAD</span><span style="background-repeat: initial initial;line-height:180%;font-size:12px;color:rgb(102, 102, 102);">);</span><br clear="none" style="background-repeat: initial initial;line-height:180%;"/></pre></div> </td></tr></table></div> </div> </div><br clear="none" style="background-repeat: initial initial;line-height:180%;color:rgb(128, 128, 0);"/><span style="background-repeat: initial initial;line-height:180%;font-size:14px;color:rgb(128, 128, 0);">官方站点:</span><a shape="rect" target="blank" rel="nofollow" href="http://www.svnkit.com/" style="background-repeat: initial initial;color:rgb(128, 128, 0);line-height:180%;text-decoration:none;font-size:14px;">http://www.svnkit.com</a><br clear="none" style="background-repeat: initial initial;line-height:180%;color:rgb(128, 128, 0);"/><span style="background-repeat: initial initial;line-height:180%;font-size:14px;color:rgb(128, 128, 0);">DOC: </span><a shape="rect" target="_blank" rel="nofollow" href="http://svnkit.com/javadoc/index.html" style="background-repeat: initial initial;color:rgb(128, 128, 0);line-height:180%;text-decoration:none;font-size:14px;">http://svnkit.com/javadoc/index.html</a></div><div style="clear: both"></div></div></div>