cornercorner
FeaturesPluginsDocs & SupportCommunityPartners

Bug 123729 - Hg view is complaning about missing hgk
: Hg view is complaning about missing hgk
Status: VERIFIED FIXED
: versioncontrol
Mercurial
: 6.1
: All Windows XP
: P3 (vote)
: 6.1
Assigned To:
:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2007-12-10 08:21 by
Modified: 2008-01-18 09:00 (History)
Issue Type: DEFECT
:


Attachments
Proposed patch (1.36 KB, text/plain)
2007-12-10 18:10, John Rice
Details


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2007-12-10 08:21:06
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.
------- Comment #1 From 2007-12-10 09:50:44 -------
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.
------- Comment #2 From 2007-12-10 09:56:04 -------
Updated release notes:
http://wiki.netbeans.org/wiki/view/MercurialVersionControlReleaseNotes1_4_2
------- Comment #3 From 2007-12-10 09:59:30 -------
I am using TortoiseHg. Can't you check for existence of "hg view" or "hgview"
respectively? 

http://tortoisehg.sourceforge.net/
------- Comment #4 From 2007-12-10 10:08:53 -------
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.
------- Comment #5 From 2007-12-10 18:10:28 -------
Created an attachment (id=54106) [details]
Proposed patch
------- Comment #6 From 2007-12-10 18:12:07 -------
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.
------- Comment #7 From 2007-12-11 22:17:16 -------
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
------- Comment #8 From 2008-01-18 09:00:49 -------
Verified.