tags:

views:

26

answers:

2

I am using an SVN repository to hold revisions for a project. About half way through (having commited several times) i changed the directory structure of the project, and renamed some files.

Now when I try and commit it tells me that the path to an old file (that was renamed, and moved) was not found. Also I am the only person working on this project, so any changes I make to my working copy will be the only changes. I am also using subclipse to manage the project.

How can I commit this modified project?

+2  A: 

When you renamed and moved things around, did you use the Subversion commands to rename and move, or did you just change things around on your local filesystem?

Normally Subversion expects to be told that you're moving things around, otherwise it has no way of knowing what you did.

Greg Hewgill
I made all the modifications in the "Project Explorer" in Eclipse. I pesumed that this used the SVN commands since the icons for the files have small "+" or "x" icons when i have added them or deleted them.
Kris M
@Kris M: Hmm, I'm unfamiliar with using Eclipse's integrated Subversion support. You may try doing a commit of all your renames and moves before attempting to make further changes. But it's hard to tell what Eclipse is doing behind the scenes (at least hard for me to tell, perhaps you have a log window or something).
Greg Hewgill
I will see if I can find a log of what is going on.
Kris M
A: 

Although there are ways to repair a messed-up working copy, the following brute-force approach often yields fastest results:

  1. backup your working copy;
  2. checkout the last committed version from the repository;
  3. manually inspect the changes between 1) and 2) above (tools such as meld or windiff can help a lot);
  4. properly merge the changes and commit the new version.
ssegvic