repository hg clone not found,command returned code 255

gqy117's Avatar


07 Nov, 2013 02:51 PM

Hello everyone.

I'm new to hgLab.I just installed the server side site.Created a Project and a repository.

But when I try to do a CLONE the repository following the url.

An error happen:
repository hg clone not found... command returned code 255

Here is my clone url:
hg clone http://[email blocked]:85/hg/slug1/r1

I found that there is a prefix with an @ signal before my server url.

Is that prefix correct?

If not how to remove that from my clone url?

Thanks in advance.

  1. Support Staff 1 Posted by Anton Gogolev on 07 Nov, 2013 02:55 PM

    Anton Gogolev's Avatar


    hg clone http://[email blocked]:85/hg/slug1/r1
    is not a Clone URL, but a full command that you're supposed to run from the command prompt. Your actual Clone URL is http://[email blocked]:85/hg/slug1/r1.
  2. 2 Posted by gqy117 on 07 Nov, 2013 03:10 PM

    gqy117's Avatar

    Hello Anton.

    Thanks for the quick replay :)

    I have run the command in the server by using cmd.exe

    It seems it works in some degree.

    And run the following command

    cd R1
    (echo. && echo [ui]) >> ..hg\hgrc (echo username = gqy117 ^<[email blocked]^> && echo.) >> ..hg\hgrc echo [auth] >> ..hg\hgrc
    (echo hglab.prefix = && echo hglab.username = gqy117) >> ..hg\hgrc

    After that it seems the Clone Instructions still display the same thing as before.

    I'm just not sure what should I do next?


  3. Support Staff 3 Posted by Anton Gogolev on 07 Nov, 2013 03:16 PM

    Anton Gogolev's Avatar

    The second set of commands is entirely optional just writes a bunch of
    stuff to .hg/hgrc, which is a configuration file for your local Mercurial
    repository. It sets up your username, authentication prefix and other
    settings. These commands do not affect Cloning Instructions page in any

    Now that you've successfully cloned a repository, you can start working
    with it as usual: committing, viewing logs, diffing, pulling, pushing, etc.
    If you're new to Mercurial, here's an excellent tutorial to get you
    started: .

  4. 4 Posted by gqy117 on 07 Nov, 2013 03:20 PM

    gqy117's Avatar

    Oh ,I've figured it out.

    I should run this command in the client side,using cmd.exe

    Thank you for your kindly help!

  5. Support Staff 5 Posted by Anton Gogolev on 07 Nov, 2013 03:24 PM

    Anton Gogolev's Avatar

    Glad I could help! If you need further assistance, feel free to contact me.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

19 Mar, 2021 06:13 PM
01 Mar, 2021 02:51 PM
01 Jan, 2021 02:19 AM
28 Aug, 2020 08:34 AM
23 Jun, 2020 08:29 AM


19 Dec, 2019 06:58 AM
21 Aug, 2019 09:07 AM
30 Jul, 2019 08:59 PM
31 May, 2019 02:29 PM
26 Nov, 2018 01:47 PM
16 Nov, 2018 07:51 PM