WebFaction
Community site: login faq

Hello!

I followed this guide (from the documentation), I managed to successfully setup Mercurial with the hgweb.cgi web app and the whole shebang. I've tested it through the command line (Mac OS X Terminal) and the web interface and everything seems to be working fine, however, I'm experiencing some difficulties with setting up MacHg (UI front-end for Mercurial).

I've set up the server app with an .htaccess file, restricted to one user, using the latter method mentioned here. The only thing I did different from the guide is that I'm not using HTTPS for the repo (because I haven't figured out how to enable it for only a sub-domain (http://mydomain/repo/) in the "Website" records in the WebFaction).

I was wondering if maybe somebody else have successfully configured MacHg (or something similar, like Murky) towards a Mercurial repository hosted on WebFactions, and could give me some pointers? I haven't done anything like this before, so any tips, tricks and advice would be greatly appreciated! :)

This is the error message I get when trying to set it up through normal HTTP:

Errors:
abort: 'http://<usr>:<pwd>@mydomain.com/repo' does not appear to be an hg repository!

Thanks in advance!

PS: Many thanks to the person who wrote the Mercurial setup documentation! It was really simple to follow, even for me who has never setup anything like that before. Kudos!

asked 08 Aug '11, 19:28

Leif
11169
accept rate: 0%

edited 09 Aug '11, 15:19

Can you tell us the exact error that MacHg shows?

(08 Aug '11, 23:26) neeravk

I added the error message, and whilst doing so, I figured out what the problem was. It was just me being silly and trying to use the wrong path. I guess I was blinded by the obvious :p

Thanks for the help though! :)

(09 Aug '11, 15:27) Leif

However, it appears as if I still have some authentication problems when I try to push my changes back into the repo.

(09 Aug '11, 15:38) Leif

Figured it out!

This was me being a total noob (PEBKAC). Basically, I was trying to use the path to where Mercurial runs (the root path of the application) as a repository. But this is of course only where the web applications runs.

So, I was trying to add this as a repository:

http://mydomain.com/repo

When I should have been adding the individual repositories, like so:

http://mydomain.com/repo/TestRepo
permanent link

answered 09 Aug '11, 15:26

Leif
11169
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×14
×5
×5
×4
×1

question asked: 08 Aug '11, 19:28

question was seen: 4,564 times

last updated: 09 Aug '11, 15:38

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM