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

RE: [Subclipse-users] Extract Interface scenario: Subversion thinks it should delete my interface

From: Daniel Meyer <Daniel.Meyer_at_OntarioSystems.com>
Date: Mon, 13 Oct 2008 11:33:17 -0400

I was on Subclipse 1.4.2. I upgraded to Subclipse 1.4.5 and the problem disappears (i.e., after step 2 Foo.java is marked as changed rather than marked for deletion). Thank you!

-Daniel-

-----Original Message-----
From: Mark Phippard [mailto:markphip_at_gmail.com]
Sent: Monday, October 13, 2008 11:07 AM
To: users_at_subclipse.tigris.org
Subject: Re: [Subclipse-users] Extract Interface scenario: Subversion thinks it should delete my interface

What version of Subclipse are you doing this with? As of release
1.4.3 when you add a file that is scheduled for delete it should
automatically be reverted for you so that it shows as a modification.

See: http://subclipse.tigris.org/issues/show_bug.cgi?id=772

Mark

On Mon, Oct 13, 2008 at 4:12 PM, Daniel Meyer
<Daniel.Meyer_at_ontariosystems.com> wrote:
> There is a refactoring I do in Eclipse (with Subclipse) where I feel like
> I'm fighting Subversion to accomplish what I'm trying to do, and I'm
> wondering if there's a better way to do it.
>
> Suppose I have a class named Foo that does not implement an interface; it
> just does the work itself. Now after Foo.java has been committed to
> Subversion, I decide I want Foo to be an interface and move the work from
> Foo to FooImpl. To accomplish this change, I:
> 1. Press F2 (rename Foo.java to FooImpl.java)
> 2. Press Shift+Alt+T, E (Extract Interface from FooImpl.java to Foo.java)
> At this point, Foo.java's icon shows red X, signifying that it will be
> deleted when I commit the project to Subversion. What I would like is to be
> able to commit my Foo.java renamed to FooImpl.java, AND my new Foo.java
> interface. I would also like the revision history of the former Foo.java to
> be attached to it under its new name at FooImpl.java.
>
> I get the same results when I press Shift+Alt+T, N instead of F2 to rename
> Foo class to FooImpl.
> I can get to a state where I can commit everything by performing the
> following on Foo.java before committing:
> 3. Team -> Revert
> 4. Replace With -> Previous from Local History
> But is there a more graceful way of accomplishing this?
>
> -Daniel-
>
>
> Attention: This message and all attachments are private and may contain
> information that is confidential and privileged. If you receive this message
> in error, please notify the sender by reply email and delete the message
> immediately.

--
Thanks
Mark Phippard
http://markphip.blogspot.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subclipse.tigris.org
For additional commands, e-mail: users-help_at_subclipse.tigris.org
Attention: This message and all attachments are private and may contain
information that is confidential and privileged. If you received this
message in error, please notify the sender by reply email and delete
the message immediately.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subclipse.tigris.org
For additional commands, e-mail: users-help_at_subclipse.tigris.org
Received on 2008-10-13 17:34:20 CEST

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.