SVN Decorators

I've switched over to IntelliJ now for about 2 weeks from Eclipse and really loving it. One thing I miss though is the ability to see what branch I'm working on in my project tool window. Does this feature exist currently and if not is there any plans for adding the feature? This would be similar to what Eclipse calls "decorators"

Thanks!

6 comments

Hello Aaron,

I've switched over to IntelliJ now for about 2 weeks from Eclipse and
really loving it. One thing I miss though is the ability to see what
branch I'm working on in my project tool window. Does this feature
exist currently and if not is there any plans for adding the feature?
This would be similar to what Eclipse calls "decorators"


Selena M1 shows the files switched to a non-default branch (different from
the rest of the project) with a special color and displays the branch name
in the Changes view. You can download that version at http://www.jetbrains.com/idea/nextversion/

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Right, it shows if something is different than the rest of the project, but what if I switch my entire project to a different branch. Then I leave for the day and I have forgotten to switch back. When I come in to work the next day, how do I know that I'm on the branch or the trunk?

Or if I have the scenario where I have a production branch for version 1.0 and for version 2.0 and I want to make the change in 2.0, how can I verify that my current workspace is actually switched to that branch?

Sorry, I should have mentioned that I'm using 7.0 M1.

Thanks,
Aaron Korver

0

Aaron,

I find it convenient to have an IDEA project per branch (unlike eclipse where you have a global "workspace" with the ability to have multiple branches). I think that's how you've described your setup, but I'm not certain. If not, I'd recommend doing so.

With per-branch project setup, you can rename the base project's .ipr file so that it better describes your Branch. It will appear in the title bar of IDEA.

As for the individual modules of that project, that's a little trickier. I see you can rename them in IDEA's project configuration. Doing so for a lot of modules would be a big pain, though, and I'm not sure in which of IDEA's project files that property resides. Renaming *.iml files might do it, but as those filenames are references elsewhere, so its more involved than renaming the ipr file.

HTH!

~Keith

0

Hello Aaron,

Right, it shows if something is different than the rest of the
project, but what if I switch my entire project to a different branch.
Then I leave for the day and I have forgotten to switch back. When I
come in to work the next day, how do I know that I'm on the branch or
the trunk?

Or if I have the scenario where I have a production branch for version
1.0 and for version 2.0 and I want to make the change in 2.0, how can
I verify that my current workspace is actually switched to that
branch?


The path to the project file you're editing is displayed in the window title
bar. Isn't that sufficient for you? Isn't it more convenient to keep different
branches of a project checked out to different directories rather than switch
a single working directory to different branches?

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Yes, the path is displayed, but if you do a switch inside your project then the path is the same, just on a different branch in SVN. I'm thinking that this use case was never thought about for IDEA (which is fine really).

The different project per branch work around will work for me. I do think it is more convenient to do the switch inside one project instead of separate ones, but I can live with it.

Decorators was one feature of Eclipse that I feel they got right, so I'm a bit disappointed that IDEA doesn't have the same concept, but it has more going for it than Eclipse does so that is fine.

Thanks for your help,
Aaron

0

Hello Aaron,

Yes, the path is displayed, but if you do a switch inside your project
then the path is the same, just on a different branch in SVN. I'm
thinking that this use case was never thought about for IDEA (which is
fine really).

The different project per branch work around will work for me. I do
think it is more convenient to do the switch inside one project
instead of separate ones, but I can live with it.


There's one big advantage of using different projects per branch: you'll
have separate compiler caches for each project, so you won't have to rebuild
your project every time you switch branches.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.