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.
Product Version: NetBeans IDE 6.0 (Build 200711261600) Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb) Userdir: D:\ide\60daily\user3 From within the command line I am able to run "hgview" and "hg view" inside the hg repository. But running this command from the IDE, there is error shown about the "hgk" can't be found in PATH.
Which version of Hg are you using? To get hgk to work on Windows, you need to install the "unofficial batteries included" release: http://qct.sourceforge.net/Mercurial-BI.html and add <MercurialInstallDir>\scripts to your PATH [Control Panel> System> Advanced> Environment Variables: System Variables - select Path and choose Edit The problem is that even if Hg can pick up hgk we need to be able to explicitly check for it. We could automatically look for it under a scripts dir on Windows.
Updated release notes: http://wiki.netbeans.org/wiki/view/MercurialVersionControlReleaseNotes1_4_2
I am using TortoiseHg. Can't you check for existence of "hg view" or "hgview" respectively? http://tortoisehg.sourceforge.net/
We hadn't tested with TortoiseHg. The problem is that we don't know if hg view will work until we try. It looks like TortoiseHg is also using the batteries included release. I'll see if we can check for Hgk.cmd under the <Hg Install Location>/scripts subdir on Windows in addition to looking for it on the explicit path.
Created attachment 54106 [details] Proposed patch
Patch checks on Windows for presence of Hgk under "scripts" subdir of dirs on Path, if other checks fail. Tested and works fine with TortoiseHg on Windows.
IDE:------------------------------------------------- IDE: [11/12/07 22:16] Committing started Checking in ViewAction.java; /cvs/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/ui/view/ViewAction.java,v <-- ViewAction.java new revision: 1.9; previous revision: 1.8 done IDE: [11/12/07 22:16] Committing finished
Verified.