I want to be able to take a file in a Mercurial repository (Readme for example) and display it to the user. Is this possible in PHP? I do have command line hg installed on the server.
A:
Maybe running
hg serve
and interacting with the server (localhost:8000) could be a viable option.
tmadsen
2009-12-19 13:34:18
On a shared host, so I can't do this.
Henri Watson
2009-12-19 14:51:42
+3
A:
Just launch hg cat -r <rev> file
from php, you'll get the file in stdout.
tonfa
2009-12-19 13:48:39