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)
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:
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:
I am using TortoiseHg. Can't you check for existence of "hg view" or "hgview" respectively?
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]
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: [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
IDE: [11/12/07 22:16] Committing finished