why does svn under IDEA fail to recursively add directories?

I am using IDEA 7.0.4.

I just copied a major directory structure into a part of my file system that IDEA knows to be part of one of my projects. Within a second or two, the newly copied directory shows up in IDEA's project view. So far so good.

Then I right click on the directory, choose Subversion --> Add and the directory's name turns green like it should for a newly added item. I commit. that works too.

But then I find out to my horror (actually, my boss IMed me saying that I just broke a build...) that all I did was merely add the top level directory itself, but none of its contents were recursively added.

What happened? I thought that svn directory adds by default are recursive.

I had to manually go thru every item and manually add it, which made me furious, in order to get our build to work.

Not sure if this is relevant or not, but the directory that I added previously existed. The old version i first deleted in IDEA/svn, committed that change, then I added the new version as described above. i would have thought that the delete the old and commiting before adding the new would keep IDEA/svn from getting confused, but maybe not...

6 comments
Comment actions Permalink

I also noticed that. I think in earlier versions IDEA asked which files in the directory to add, but I am not sure.

Anyway: I created an issue for it, please vote/comment there:
http://www.jetbrains.net/jira/browse/IDEA-19717

0
Comment actions Permalink

I also noticed that. I think in earlier versions IDEA asked which files in the directory to add, but I am not sure.

Anyway: I created an issue for it, please vote/comment there:
http://www.jetbrains.net/jira/browse/IDEA-19717


I am relieved that at least someone else is seeing this too.

And thanks for opening an issue for it. I tried to vote, but my forum login does not seem to work on that issue tracker.

0
Comment actions Permalink

Out of curiosity was the location you copied it from a subversion working copy? If so when you copied it over did you also copy the existing ".svn" directories?

I had a similar issue where IntelliJ appeared to not recursively add a directory structure I copied over from another working copy, then I realized I had copied over the .svn directories so Subversion thought they were already added. I fixed the issue by insuring I didn't copy the existing .svn directories over.

Absent that one instance, which was my mistake, 7.0.4 recursively adds/commits directories just fine for me.

>> I had to manually go thru every item and manually add it, which made me furious, in order to get our build to work.

Dude, relax, not worth your health to get furious over something so silly:-)

0
Comment actions Permalink

And, as a workaround, there's always "svn add *" .... (at least it's better than getting your hardbeat to rise to 180...)

0
Comment actions Permalink

Out of curiosity was the location you copied it from a subversion working copy?


No, it was not. The source directory structure most definitely did not have any .svn shadow directories. (Why oh why did cvs/svn ever make the bad decision to pollute your entire directory structure with those annoying metadata directories, instead of maintaining a central database file somewhere else? But that's another discussion...)

Dude, relax, not worth your health to get furious over something so silly:-)


It is a bit disturbing when your boss is screaming at you for breaking a build, and having to hand add 100+ files causes you to miss an appointment with your CEO (aka "wife").

0
Comment actions Permalink

>> It is a bit disturbing when your boss is screaming at you for breaking a build, and having to hand add 100+ files

1) Why didn't you just open a handy-dandy command line and add them from there? Would have taken a couple of seconds. Even Windows' decrepit command line could have handled this.
2) Why didn't you just undo your commit?
3) Why does your boss get in a tizzy if the build breaks? You owe everyone a round of drinks Friday after work, but nothing to get in a tizzy over.
4) If it was that important to your boss to do a build why didn't he just build the revision before your commit?

I don't have an explanation why a recursive add would have failed. The ".svn" directories where my only idea.

0

Please sign in to leave a comment.