lisantra-technologies / VersionControl_Hg

A Mercurial client for PEAR written in PHP
2 stars 3 forks source link

VersionControl_Hg can't find hg on my system #3

Open lornajane opened 11 years ago

lornajane commented 11 years ago

I'm on linux, running PHP from the commandline. My Hg binary is at /usr/bin/hg but VersionControl_Hg can only find it if I pass a path into setExecutable() ... but there doesn't seem to be a way to do that without actually modifying the library. Is there a right way to do this?

mgatto commented 11 years ago

I coded it specifically to be multi-platform. However, I'm developing and testing locally only on a Windows laptop so far. Did changing isexecutable() -> is_executable() fix this?

lornajane commented 11 years ago

I'm on Linux (specifically Ubuntu 12.10) so between us we are a pretty good testing platform :) The is_executable change doesn't help with this issue, I will see if I can find the way this is "normally" done.