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

Re: [Subclipse-users] Index path in patch files from Subclipse

From: Grzegorz Kossakowski <grek_at_tuffmail.com>
Date: 2007-02-07 14:04:49 CET

Mark Phippard napisaƂ(a):
> On 2/7/07, Grzegorz Kossakowski <grek@tuffmail.com> wrote:
>> Hello,
>>
>> I'm having a problem with patches produced by Subclipse. Index: field in
>> patch contain whole, absolute path of directory/file but it should be
>> relative to the root directory of check-out, right? For example:
>
> The full path is the expected output and has always worked that way.
> I am not aware of any apply patch programs that cannot handle it.
> Eclipse certainly handles it fine.
>
> Ultimately it is out of our control. The JavaHL/SVNKit diff API is
> what produces the output. I think it does absolute paths because the
> Eclipse directory is the current working directory when the patch is
> produced. Although I have experimented with manipulating that and I
> still get absolute paths.
>
Thanks for interest.
I used to use TortoiseSVN on Windows and it always produced relative
paths. Command line "svn diff" also produces relative paths (see example
below) so I thought that Subclipse behaves abnormally. But if it's
expected and you think no one will blame me for sending patches with
absolute paths included I can live with that...

grek@grek:~/c2.2-trunk2> svn diff
Index:
blocks/cocoon-ajax/cocoon-ajax-sample/src/main/resources/META-INF/cocoon/spring/cocoon-ajax-sample-blockServlet.xml
===================================================================

---
blocks/cocoon-ajax/cocoon-ajax-sample/src/main/resources/META-INF/cocoon/spring/cocoon-ajax-sample-blockServlet.xml
(wersja 504142)
+++
blocks/cocoon-ajax/cocoon-ajax-sample/src/main/resources/META-INF/cocoon/spring/cocoon-ajax-sample-blockServlet.xml
(kopia robocza)
@@ -25,5 +25,8 @@
     <bean id="org.apache.cocoon.ajax.sample.servlet"
class="org.apache.cocoon.sitemap.SitemapServlet">
         <servlet:context mount-path="/cocoon-ajax-sample"
context-path="blockcontext:/cocoon-ajax-sample/"/>
+        <servlet:connections>
+          <entry key="ajax"
value-ref="org.apache.cocoon.ajax.impl.servlet"/>
+       </servlet:connections>
     </bean>
 </beans>
-- 
Grzegorz Kossakowski
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Wed Feb 7 14:04:57 2007

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

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