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 215440 - Cannot change Mercurial user name setting with Kiln repository
Summary: Cannot change Mercurial user name setting with Kiln repository
Status: RESOLVED DUPLICATE of bug 255202
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Mercurial (show other bugs)
Version: 7.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-12 07:04 UTC by mienamoo
Modified: 2015-09-11 10:07 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 mienamoo 2012-07-12 07:04:37 UTC
NetBeans 7.2 build 201206291011
JDK 7u5 32-bit

I am using a Kiln repository (which is built on top of Mercurial), which means that my C:\Users\<user>\Mercurial.ini file contains the following line:

%include Mercurial-kiln.ini

This means that the user name cannot be saved from the options panel, due to the following exception:


INFO [org.netbeans.modules.mercurial]: Cannot parse configuration file
org.ini4j.InvalidFileFormatException: parse error (at line: 6): %include Mercurial-kiln.ini
	at org.ini4j.spi.AbstractParser.parseError(AbstractParser.java:53)
	at org.ini4j.spi.AbstractParser.parseOptionLine(AbstractParser.java:85)
	at org.ini4j.spi.IniParser.parse(IniParser.java:101)
	at org.ini4j.spi.IniParser.parse(IniParser.java:62)
	at org.ini4j.Ini.load(Ini.java:109)
	at org.ini4j.Ini.<init>(Ini.java:50)
[catch] at org.netbeans.modules.mercurial.config.HgConfigFiles.createIni(HgConfigFiles.java:344)
	at org.netbeans.modules.mercurial.config.HgConfigFiles.loadSystemAndGlobalFile(HgConfigFiles.java:395)
	at org.netbeans.modules.mercurial.config.HgConfigFiles.doReload(HgConfigFiles.java:281)
	at org.netbeans.modules.mercurial.config.HgConfigFiles.getUserName(HgConfigFiles.java:261)
	at org.netbeans.modules.mercurial.config.HgConfigFiles.getSysUserName(HgConfigFiles.java:194)
	at org.netbeans.modules.mercurial.HgModuleConfig.getSysUserName(HgModuleConfig.java:242)
	at org.netbeans.modules.mercurial.options.MercurialPanel.load(MercurialPanel.java:284)
	at org.netbeans.modules.mercurial.options.MercurialOptionsPanelController.update(MercurialOptionsPanelController.java:99)
	at org.netbeans.modules.versioning.util.VcsAdvancedOptions.update(VcsAdvancedOptions.java:138)
	at org.netbeans.modules.options.advanced.Model$DelegatingController.update(Model.java:299)
	at org.netbeans.modules.options.advanced.Model.update(Model.java:182)
	at org.netbeans.modules.options.advanced.AdvancedPanel.update(AdvancedPanel.java:101)
	at org.netbeans.modules.options.advanced.AdvancedPanelController.update(AdvancedPanelController.java:73)
	at org.netbeans.modules.options.CategoryModel$Category.update(CategoryModel.java:382)
	at org.netbeans.modules.options.OptionsPanel.setCurrentCategory(OptionsPanel.java:182)
	at org.netbeans.modules.options.OptionsPanel.initCurrentCategory(OptionsPanel.java:141)
	at org.netbeans.modules.options.OptionsDisplayerImpl.showOptionsDialog(OptionsDisplayerImpl.java:195)
	at org.netbeans.api.options.OptionsDisplayer$3.run(OptionsDisplayer.java:190)
	at org.netbeans.api.options.OptionsDisplayer$3.run(OptionsDisplayer.java:176)
	at org.openide.util.Mutex.doEventAccess(Mutex.java:1363)
	at org.openide.util.Mutex.readAccess(Mutex.java:273)
	at org.netbeans.api.options.OptionsDisplayer.openImpl(OptionsDisplayer.java:176)
	at org.netbeans.api.options.OptionsDisplayer.open(OptionsDisplayer.java:163)
	at org.netbeans.api.options.OptionsDisplayer.open(OptionsDisplayer.java:117)
	at org.netbeans.modules.options.OptionsWindowAction.actionPerformed(OptionsWindowAction.java:64)
	at org.openide.awt.AlwaysEnabledAction$1.run(AlwaysEnabledAction.java:197)
	at org.openide.util.actions.ActionInvoker$1.run(ActionInvoker.java:95)
	at org.openide.util.actions.ActionInvoker.doPerformAction(ActionInvoker.java:116)
	at org.openide.util.actions.ActionInvoker.invokeAction(ActionInvoker.java:99)
	at org.openide.awt.AlwaysEnabledAction.actionPerformed(AlwaysEnabledAction.java:200)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
	at java.awt.Component.processMouseEvent(Component.java:6505)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
	at java.awt.Component.processEvent(Component.java:6270)
	at java.awt.Container.processEvent(Container.java:2229)
	at java.awt.Component.dispatchEventImpl(Component.java:4861)
	at java.awt.Container.dispatchEventImpl(Container.java:2287)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
	at java.awt.Container.dispatchEventImpl(Container.java:2273)
	at java.awt.Window.dispatchEventImpl(Window.java:2719)
	at java.awt.Component.dispatchEvent(Component.java:4687)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:703)
	at java.awt.EventQueue.access$000(EventQueue.java:102)
	at java.awt.EventQueue$3.run(EventQueue.java:662)
	at java.awt.EventQueue$3.run(EventQueue.java:660)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
	at java.awt.EventQueue$4.run(EventQueue.java:676)
	at java.awt.EventQueue$4.run(EventQueue.java:674)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:673)
	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:158)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:97)
Comment 1 Ondrej Vrabec 2012-07-23 14:46:35 UTC
well, we'll need our own parser for mercurial config files after all.
Comment 2 Ondrej Vrabec 2015-09-11 10:06:17 UTC

*** This bug has been marked as a duplicate of bug 25520 ***
Comment 3 Ondrej Vrabec 2015-09-11 10:07:05 UTC

*** This bug has been marked as a duplicate of bug 255202 ***