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 223523 - inactive git features after init - for a long while
Summary: inactive git features after init - for a long while
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-08 13:59 UTC by maxym
Modified: 2012-12-12 02:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description maxym 2012-12-08 13:59:53 UTC
Initially I thought it doesn't work. But after a longer while (during writing bug report) it started to work so I want to report slightly different issue.

After initializing git for non-empty directory, all files are marked as new but none of git options are active except of clone.
After waiting a longer while, git options were activated without any user action.
Also it is possible to bring it alive by restarting NB.



How to reproduce:
1. Create php project from existing files (maybe number of files does matter - I have a lot)
- I'm using separate project and sources directories (even different partitions), just FYI
2. Initialize git on this project
3. check context menu/Git or Team menu - git options are disabled (except of clone)
4. restart NB to get all GIT features available (or wait a while)

Don't know if it is intentional/known issue. But it's quite surprising since there is no any indication what happens. Happened for a few projects I had to start with. 

with regards
Comment 1 maxym 2012-12-08 14:32:37 UTC
one findings more:
options are not activated after time. It happen when you call context menu on some file and look into git submenu. Then project-level git options turn on.
Comment 2 Ondrej Vrabec 2012-12-08 14:57:24 UTC
(In reply to comment #0)
> - I'm using separate project and sources directories (even different
> partitions), just FYI
> 2. Initialize git on this project
And where do you actually create the .git folder? If you have source files spread across different partitions and source directories, then where is the git folder located? Please describe the setup a bit and if you can, attach also nbproject/project.properties file
Comment 3 maxym 2012-12-08 15:44:10 UTC
Git repo is created for source files (h:\!projects\html\project_name\)
Project files are located in f:\_devel\NetBeans7_projects\project_name\) and are not maintained by any cvs
Comment 4 Ondrej Vrabec 2012-12-10 13:26:12 UTC
fix: http://hg.netbeans.org/core-main/rev/a2de2bfdd173
Comment 5 Quality Engineering 2012-12-12 02:47:27 UTC
Integrated into 'main-golden', will be available in build *201212120001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/a2de2bfdd173
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: #223523 - inactive git features after init - for a long while
Cached VCSContext should be flushed when versioning owners change. Otherwise the context may contain invalid or at least inaccurate root files in case project consists of multiple source roots coming from different parts of file system.