Does not appear to be an hg repository using HTTP

Thomas iamkenzo at gmail.com
Tue Jan 29 22:46:30 UTC 2008


I have decided to install mercurial from scratch and by compiling from
the source using this documentation page:
http://www.selenic.com/mercurial/wiki/index.cgi/UnixInstall

It all goes almost well until: $ hg debuginstall.

If I run it as a regular user, I get:
------------
Traceback (most recent call last):
  File "/usr/bin/hg", line 11, in <module>
    mercurial.commands.run()
AttributeError: 'module' object has no attribute 'run'
-------------

And if I run it as root:
-------------
Checking encoding (UTF-8)...
Checking extensions...
Checking templates...
Checking patch...
Checking merge helper...
Checking commit editor...
Checking username...
 No username found, using 'root at ubuntu' instead
 (specify a username in your .hgrc file)
No problems detected
---------------

Is that okay?

Now browsing the reporitory has come back finally!

So I try pushing through http, and I get the error as a regular user:
$hg push http://ubuntu:83
--------------------
Traceback (most recent call last):
  File "/usr/bin/hg", line 11, in <module>
    mercurial.commands.run()
AttributeError: 'module' object has no attribute 'run'
----------------------

And as root: $sudo hg push http://ubuntu:83
-------------------
pushing to http://ubuntu:83
searching for changes
abort: 'http://ubuntu:83/' does not appear to be an hg repository!
----------------------

Well I am back to square one, and actually things have gotten even
worse, because now I need to push being root.

I am totally lost with that issue.

I will roll back to my previous setup using the ubuntu mercurial
package and the old hgweb.cgi file, and I'll try to correct the
permissions or something like that. I nothing works I'll have to move
on to another DVCS as I won't let nginx down.



More information about the Mercurial mailing list