This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 216086 - 7.2 install loses versioning history older than 7 days
Summary: 7.2 install loses versioning history older than 7 days
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Localhistory (show other bugs)
Version: 7.2
Hardware: PC Linux
: P2 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-27 22:54 UTC by berniev
Modified: 2012-09-13 02:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (45.58 KB, text/plain)
2012-07-27 22:54 UTC, berniev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description berniev 2012-07-27 22:54:34 UTC
Product Version = NetBeans IDE 7.2 (Build 201207171143)
Operating System = Linux version 3.0.0-23-generic-pae running on i386
Java; VM; Vendor = 1.6.0_24
Runtime = OpenJDK Client VM 20.0-b12

At first use after install 7.2 offers to import settings, which I allowed.

Settings appear to have been imported 
BUT Tools->Miscellaneous->Versioning->History->Never remove local files is NOT.
It is set to 7 days and older history is not available.

Note: The older history is still showing in the 7.1 install.

Aside: How do I get the old history across to 7.2. On the rare occasion I need the old stuff, I REALLY need it!!
Comment 1 berniev 2012-07-27 22:54:40 UTC
Created attachment 122478 [details]
IDE log
Comment 2 Tomas Stupka 2012-09-11 11:41:03 UTC
could reproduce

> Note: The older history is still showing in the 7.1 install.
moving the contents of {7.1userdir}/var/filehistory into {7.2userdir}/var/filehistory should fix it
Comment 3 berniev 2012-09-11 13:07:34 UTC
Thanks for confirming.

But if I just copy that over now won't the history for the last six weeks since running 7.2 will be wiped?

Maybe a good idea for immediately after installing new version, maybe not so good now! Unless there is a way to merge them.
Comment 4 Tomas Stupka 2012-09-11 13:14:38 UTC
> But if I just copy that over now won't the history for the last six weeks since
> running 7.2 will be wiped?
the particular revisions are in separate files, so copy the contents of 7.1 into 7.2 and in case of a conflict keep the state from 7.2. I didn't try for myself, but that way i could work.

maybe, just in case, you should keep a pristine copy of your current 7.2
Comment 5 berniev 2012-09-11 13:52:31 UTC
Again, thanks, but it all sounds too messy/dangerous. There are a lot of folders in there to have to figure out. I'll just leave the 7.1 pristine and run that if I really need to see an old version. There have been many, many changes in the last six weeks.

More importantly, can this be fixed as part of the import settings for future versions.

Or at the very least some sort of warning or instructions during install import settings. To find after some time that history is gone is quite disconcerting!
Comment 6 Tomas Stupka 2012-09-11 18:20:15 UTC
fixed in core-main #aa77ec3c3995
Comment 7 Quality Engineering 2012-09-13 02:14:09 UTC
Integrated into 'main-golden', will be available in build *201209130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/aa77ec3c3995
User: Tomas Stupka <tstupka@netbeans.org>
Log: Issue #216086 - 7.2 install loses versioning history older than 7 days