SVN commit failed after moving dir containing external

In idea-3425 I checked out a project containing an svn:external directory, moved a parent, and tried to check it back in, but got this error:

Messages - Checkin Directory
Error: svn: Commit failed (details follow): svn: Working copy '/home/jdb/devel/IdeaProjects/HelloMidletSvn/src/main/java/com/getsu' is missing or not locked

I'm an SVN newbie. Is the problem is in SVN, IDEA, or my head?

The external dir was src/com/getsu. I added main/java "packages" to src, removed src from the paths, refactor moved src/com into src/main/java, and then tried to checkin. After I got the error in IDEA, I used the following command line svn commands to check for problems and finally to commit successfully.

By the way, why does IDEA's Subversion menu contain Checkin directory... while the svn command is "commit"?

Also, I should mention that I'm impressed with SVN and IDEA's integration with it so far. In particular, it's cool that IDEA can commit a tree including external subtrees, while the svn command line client cannot and must process them separately.

I'm using svn version 1.1.4 (r13838) on Fedora Core 3 for both client and server machines.

Cheers,
11011011

$ cd HelloMidletSvn/
$ ls
classes HelloMidlet.ipr HelloMidlet.jad src
HelloMidlet.iml HelloMidlet.iws HelloMidlet.jar
$ cd src/
$ ls
com main
$ cd main
$ ls
java
$ cd java
$ ls
com
$ svn status
A .
A + com
X com/getsu/j2me

Performing status on external item at 'com/getsu/j2me'
$ cd ..
$ ls
java
$ cd ..
$ ls
com main
$ cd com/
$ ls
getsu
$ svn status
D .
D getsu
$ ls ~/devel/idea/
idea-3401 idea-3425
$ ls
getsu
$ cd getsu/
$ ls
$ pwd
/home/jdb/devel/IdeaProjects/HelloMidletSvn/src/com/getsu
$ svn propget svn:externals .
j2me svn+ssh://gecko/home/jdb/devel/svnrepo/share/src/java/comgetsu/trunk/j2me

$ cd ../..
$ ls
com main
$ cd main/java/com/getsu/
$ svn propget svn:externals .
j2me svn+ssh://gecko/home/jdb/devel/svnrepo/share/src/java/comgetsu/trunk/j2me

$ pwd
/home/jdb/devel/IdeaProjects/HelloMidletSvn/src/main/java/com/getsu
$ cd ../..
$ cd ../..
$ cd ..
$ svn checkin
Unknown command: 'checkin'
Type 'svn help' for usage.
$ svn commit
svn: Commit failed (details follow):
svn: Could not use external editor to fetch log message; consider setting the $SVN_EDITOR environment variable or using the --message (-m) or --file (-F) options
svn: None of the environment variables SVN_EDITOR, VISUAL or EDITOR is set, and no 'editor-cmd' run-time configuration option was found
$ export VISUAL=vi
$ svn commit
Sending HelloMidlet.iml
Sending HelloMidlet.iws
Deleting src/com
Adding src/main
Adding src/main/java
Adding src/main/java/com
Transmitting file data ..
Committed revision 11.
$

Please sign in to leave a comment.