0

I've setup mercurial hg on a windows server to control the source of a website I work on.

On my local machine, I can pull from the remote repository, but not push. It gives me an authentication error. authorization failed , error code : 255

Can anyone help?

Thanks.

i-CONICA
  • 2,361
  • 9
  • 30
  • 45

2 Answers2

1

How are you hosting this remote repository? This page has more information on configuring authentication for different ways of publishing repositories.

smooth reggae
  • 2,189
  • 13
  • 14
  • Hi, I installed TortoiseHg 2.5 with Mercurial 2.3.1 on the remote Windows server. It's serving properly, and I can pull successfully from my machine, into zend with mercurial. I can't push from my machine to the remote server though. Thanks. – i-CONICA Sep 21 '12 at 14:03
  • What do you mean when you say "it's serving properly"? Are you running `hg serve` on the remote server? – smooth reggae Sep 21 '12 at 16:55
  • Hi, yes, running hg serve via the command line via RDP. I can then pull from it from my machine at home. Thanks for your help so far. :) – i-CONICA Sep 21 '12 at 17:31
  • Also, i've figured out, if I have [ui] username = * in the hgrc file, I can push successfully, but if I have [ui] username = myusername it won't allow me to push. With the authorisation failed message. In my push window, I have the username set correctly. Thanks – i-CONICA Sep 21 '12 at 17:56
  • Sorry, I meant [web] allow_push = * VS [web] allow_push = myname – i-CONICA Sep 21 '12 at 17:58
  • 1
    I don't think `hg serve` itself allows for finer control of users (see [this](http://selenic.com/pipermail/mercurial/2012-January/041622.html)). If you still want to try some form of user management with `hg serve`, take a look at the [hg-textauth](https://bitbucket.org/hstuart/hg-textauth) extension – smooth reggae Sep 21 '12 at 18:37
  • I've installed textauth successfully. I'll get setting that up! Thank you. – i-CONICA Sep 21 '12 at 18:58
0

My solution! If your are on Windows OS, you need to edit folder properties. Read/write permission.

screenshoot folder properties example

Very Important!! Dont forget turn off the web server, edit folder properties and turn on again the web server tortoiseHG