Reputation: 17888
I created a new CVS branch, checked it out and addded some folder and files into it. Once I committed the branch changes the files and the directory were committed not into my branch as one would expect but into the trunk.
According to this page this is caused ...
Due to a bug in cvs 1.3 (on which rcvs is currently based), if you add a new file in a directory checked out on a branch, the file will appear on the main line, not on your branch. Caveat scriptor.
So currently I have these new files in trunk only. Fortunatelly no harm. But how can I get those new files into the branch as well? Any tips? Ideally using IntelliJ 9.0 as CVS client. Thanks!
Upvotes: 1
Views: 978
Reputation: 17888
So I solved it finally so sharing my experience:
Upvotes: 0
Reputation: 9439
In the simplest case, this should do it (inside your working copy, from the parent folder of your new directory):
cvs up -rBranch
cvs up -jHEAD -d NewDirectory
I.e. update your working copy to the branch and then merge in changes from the trunk version of NewDirectory (creating it in the process (the -d
argument)). You still need to commit after that.
Upvotes: 2