Renamed file, now SVN not allowing me to commit?

froadie

I'm developing a ColdFusion website using Aptana. We're using SVN for version control.

I renamed a few files and am now trying to commit one of them, but I'm getting the following error:

'SVN Commit' has encountered a problem.
org.apache.subversion.javahl.ClientException: Illegal target for the requested operation
svn: Commit failed (details follow):
svn: Cannot commit 'R:\myPath\My-New-File-Name.cfm' because it was moved from 'R:\myPath\My-Old-File-Name.cfm' which is not part of the commit; both sides of the move must be committed together

This seems to indicate that I need to commit both the previous file (that was renamed) and the new renamed file together. How can I commit a file that no longer exists...?

gbjbaanb

Commit the directory, not the file.

Think of a directory as a text file containing the list of files it contains, then you can see that to commit successfully, you need to update the directory itself so it can remove the old entry and add the new entry. This will show up in SVN as deleting the old and adding the new file (ie 2 changes to the directory, not 1 change to the file)

If only want to commit the 1 file, you will need to add the other changed files to an ignore list temporarily.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Renamed directory, now SVN not allowing me to commit

From Dev

Renamed file to change case, now getting a conflict on commit

From Dev

unable to commit a file, accidentally renamed with mv

From Dev

Previous Commit to another for Deleted/Moved/Renamed File

From Dev

windows not allowing me to replace file

From Dev

How to prevent SVN from allowing commit if a certain #define is enabled?

From Dev

svn merge on renamed files

From Dev

Commit file from Jenkins workspace to SVN

From Dev

Can I get a .patch file from a svn commit without svn?

From Dev

Renamed file in local git repository and remote has now both the old and new file

From Dev

svn merge with renamed directory in branch

From Dev

accidently added huge file to my git commit now how to remove just that file from my commit

From Dev

C reading a renamed file

From Dev

Editing a text file and commit after any change in the SVN tags (Subversion)

From Dev

SVN Missing file, will it be removed from Version control after commit?

From Dev

how to commit file without keeping modification history on svn

From Dev

SVN Commit from Windows to Mac overwrites file permissions

From Dev

GitLab: Not allowing me to push

From Dev

SVN tree conflict when merging renamed folder

From Dev

SvnAnt hangs committing renamed SVN folder

From Dev

When to not "svn commit && svn update"?

From Dev

SVN commit with a newline in message

From Dev

SVN commit with Gradle

From Dev

Github commit over SVN

From Dev

The concept of a recursive commit in SVN

From Dev

WordPress SVN Commit Failed

From Dev

SVN commit permission denied

From Dev

SVN commit with Gradle

From Dev

WordPress SVN Commit Failed

Related Related

HotTag

Archive