IDEA Local History gets wiped out after each upgrade

I have a question about Local History.

Each time I upgrade to a new EAP, I make a copy of my projects directory, e.g. c:\data\projects7243 to c:\data\projects7248. I do this in case I need to fallback to an older EAP.

I thought the Local History was stored in .IntelliJ70/system directory, which I leave alone upon upgrade.

So, why is it that my Local History is wiped out each time? Is the local history tied to the project path? I thought it was based on each filename's path, which doesn't change,
because I keep all source in a directory external to the c:\data\projects7248 directory e.g. c:\workspace\src\com\abc\....

The only thing in the C:\data\projects\7248 directory are the .ipr, .iml, and .iws files.

Please advise. Thanks,
-Alex

5 comments
Comment actions Permalink

Hello Alex,

I have a question about Local History.

Each time I upgrade to a new EAP, I make a copy of my projects
directory, e.g. c:\data\projects7243 to c:\data\projects7248. I do
this in case I need to fallback to an older EAP.

I thought the Local History was stored in .IntelliJ70/system
directory, which I leave alone upon upgrade.

So, why is it that my Local History is wiped out each time? Is the
local history tied to the project path?


Yes, it is. This is likely to change in the next version of IDEA, but currently
the local history is per-project, and the .ipr file path defines the name
of the directory where the local history data is stored.

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


0
Comment actions Permalink

Isn't there an option in the wizard to leave the local history intact when you uninstall?

0
Comment actions Permalink

Hello opticyclic,

Isn't there an option in the wizard to leave the local history intact
when you uninstall?


This isn't relevant in this case. The local history isn't deleted - it's
just not seen as belonging to the new project.

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


0
Comment actions Permalink

Dmitry> the local history is per-project, and the .ipr file path defines the name
Dmitry> of the directory where the local history data is stored.

OK, thanks. Well I have a workaround for now. Instead of naming my project directory after the IDEA build number, I will use just "projects". When I upgrade, I will make a copy of "projects" to the old version, e.g. copy "projects" to "projects7348" when I upgrade to IDEA 7.0 (7361), but I will keep using "projects" with the new version. So, as long as I don't have to fallback to an older version, my local history should now be preserved.

0
Comment actions Permalink

Alex:

Another option for you (to save all the copying) would be to use a Symbolic Link (or "Junction" to use the NTFS term when referring to a Folder based link). Make "projects" a link (i.e. Junction) that points to the version of IDEA you want. You can change version with a simple link change. (IDEA will still see the same path, totally unaware that it is a link.)

After tying a couple of Sym Link utilities, I found NTFS Link Shellextention (http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html) the best. I've been using it for 2 1/2 years now. It's updated fairly regularly and supports XP (32 & 64), and Vista (32 & 64). I use it in a similar manner as you when changing IDEA versions. (As well as a number of other things such as "cross filing" directories and/or files.)

A lot of people may not be aware that Symbolic Links are part of NTFS, but they are just not exposed via the standard Windows GUI. You can read more about it at http://shell-shocked.org/article.php?id=284 which is a decent article, although it is becoming dated. Many of the utilities discussed have not been maintained in years. And it doesn't discuss NTFS Link Shellextention, but the website for one of the no longer maintained utilities discussed in the article recommends NTFS Link Shellextention.

Hope that helps.

0

Please sign in to leave a comment.