Hold up a second, how is CVS configured in the 4.x product? Desperate :)
So I created a new project which has modules and I've gotten everything built and happy. Now I need to move everything to CVS. So I go into my project settings and set the Version Control to CVS. Cool.
I go to my files and I can't get to any specific CVS commands. Okay, that makes sense since I would need to specify a CVS root for this project. Searching, searching and searching the closes I get to something that 'sounds' right is File -> Import into CVS. I say that because nothing in the CVS menu works. A project can't be committed or updated or anything. Not sure why those options aren't greyed out.
So I go to "import to CVS", which just sounds wrong - but anyways, and it shows me the Import to CVS dialog box. Cool, I think, so I specify my CVS root here by clicking on Configure and setting up stuff then click on next> I then browse to the correct project (which is only correct for ONE of the modules - don't see any way to set up CVS for multiple modules unfortunately) then it comes up asking me for more information as if its about to move my whole project to CVS... which is NOT what I want to do... I need to add 3 files from this entire project to that CVS root and the rest go into another one. I can find no way to configure this...
Please help...
请先登录再写评论。
I've always imported an initial project into CVS manually (from the command line) and then checked it out and used it with IDEA (just right click a file to access a CVS command).
From that point on I did all CVS interaction with IDEA. I have a heap of different projects that I switch to and have never had a problem.
Cheers
Tim
Try "Import into CVS..." from the file menu? I have not used this feature yet mind you.
Opps... Had I completly read your post I would not have posted the above. :)
Sorry!
I've taken it for granted that I've always used IDEA with files already controlled by CVS...
This may not be ideal but -- how about creating a project consisting of only the modules you want to import into CVS; then import that project?
Hmm, is this code already from a CVS repository? You have a working copy already?
My IDEA install has always picked up the CVS root from the ROOT file in the CVS folders littered throughout. I've had to do nothing special for IDEA to recognize my CVS stuff other than to select CVS as the version control method.
That seems to be the problem, the entire CVS system assumes that your files are already sitting in CVS somewhere and that its all sitting in one big project. What's the point of having lots of modules if you can't have CVS settings for each of those modules :(
Hmm, I am still trying to understand what you are trying to do exactly. Are the files you currently have out already in a CVS repository some where, or is this all new code that needs to be added to a CVS repository somewhere?
If it's already code in CVS, then each directory checked out from CVS "remembers" where it was checked out from.
If you need to add all new code and directory structures to CVS, then I might be able to help further.
hello,
first things first, both IntelliJ and CVS have to talk to each other work out what options they can offer you and where to place files when you check in or check out or do what ever actions you intend to take.
===
"I need to add 3 files from this entire project to that CVS root and the rest go into another one."
===
by the looks of it i take it that there is a set up in CVS already
create a project from the scratch in IntelliJ don't create any modules leave them blank (now there is no source for you to work on) Do this go to file menu in IDEA and check out your project and place them in appropriate locations now you have your source and other files checked out from CVS .... still IDEA wont show those files to you because you don't have any modules( set up your modules and identify the source for your modules in IDEA) enable CVS as your version control tool now IntelliJ and CVS has the ability to talk to each other :)
you can re-create those files in appropriate modules and package in IntelliJ or place them in proper folders externally IntelliJ will pick up the synchronize and will let you add those new files in to CVS .. commit delete etc etc ..
Hope that helps
cheers,
parthi.
hope that helps
Gregory Pierce wrote:
Gregory,
I am not sure if I understand what you're trying to do, but from your
comment here, you can do that.
I can have say 5 different modules which are either in 1 or more CVS
repositories as one or more cvs modules, checked out to 1 project, and I
can deal with all of them seaprately, check them in and out and
everything to their own respective repositories.
Not sure what the issue is.
R
IDEA loads cvs settings (cvs root) for each directory under project from its
CVS subdirectory so you can configure IDEA in order to work with several cvs
repositories. To upload your code into several repositories you can invoke
import for each module. But you cannot add files from the one directory into
different repositories because of parent directry can contain only one CVS
subdirectory
--
Olesya Smirnova
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Gregory Pierce" <no_mail@jetbrains.com> wrote in message
news:24475396.1076558004055.JavaMail.itn@is.intellij.net...
files are already sitting in CVS somewhere and that its all sitting in one
big project. What's the point of having lots of modules if you can't have
CVS settings for each of those modules :(
Some of the code is already in CVS for some modules, some of the modules have no code in CVS (and are indeed in a different CVS repository altogether).
Lets say I have some jsps that need to go into a CVS repository cvs, I have an application server that needs to go into cvs2, a scripting environment which needs to go into cvs3, and some resource files that get jar'd up into cvs4. Each one of these groupings is a different module. I unfortunately don't see any way to treat them all differently with respect to CVS outside of having them all be separate projects.
Is IntelliJ expecting me to import them all to cvs separately? If so, where is the configuration option within that approach that says I want module A to import to CVS using blah and I want module B to import to CVS using gah. When I do an import to CVS it give me exactly one import to CVS option and nothing in any of its dialogs suggests that it is module specific.
You should import your modules one by one. If one importing directory is
under another which should be imported into another cvs you should exclude
it from the import in the 3th step (using popup menu or toolbar "Exclude
from Import" action)
--
Olesya Smirnova
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Gregory Pierce" <no_mail@jetbrains.com> wrote in message
news:7622205.1076601848005.JavaMail.itn@is.intellij.net...
have an application server that needs to go into cvs2, a scripting
environment which needs to go into cvs3, and some resource files that get
jar'd up into cvs4. Each one of these groupings is a different module. I
unfortunately don't see any way to treat them all differently with respect
to CVS outside of having them all be separate projects.
>
where is the configuration option within that approach that says I want
module A to import to CVS using blah and I want module B to import to CVS
using gah. When I do an import to CVS it give me exactly one import to CVS
option and nothing in any of its dialogs suggests that it is module
specific.
In article <10783125.1076536666510.JavaMail.itn@is.intellij.net>,
Tim <no_mail@jetbrains.com> wrote:
For what it is worth, I used the "import into cvs" command for a
recently created project not yet in my repository, and it worked mostly
as expected. It did not use the .cvsignore file, and thus imported the
.DS_Store files on my machine, but I am told that bug is fixed.
Also - do delete your "build" directory before doing this. It will be
recreated as needed, but you likely do not want it in cvs.
Scott
Okay, maybe I'm missing something. Is "Import into CVS..." module specific. If it is, why do none of the dialogs involved in the import to CVS process mention a module name? How do I know which module is being imported into CVS?
Gregory Pierce wrote:
By the folder you pick the import from.
So if your module A is in folder A and you do the import, use folder A
for the files you want to import, call your CVS module, A, then you know
it's module A.
hahaha... sorry this is serious, but re reading it, it sounds like I'm
being funny....
R
Ugh, terrible hack job. If a module can have its own libraries and configs, it should be able to have its own specific CVS settings.
Gregory Pierce wrote:
I think now I understand what you're getting to. You'd like to be able
to set anything in the CVS pane on a per module basis, not project
based. So one could have compression, the other not, or one would force
comment on checkin, the other not.
hey why not :)
R