repository hg clone not found,command returned code 255

gqy117's Avatar

gqy117

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

    This:

    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 = http://gqy117.cloudapp.net:85/hg && 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?

    Thanks.

  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
    way.

    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: http://hginit.com/ .

  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

Generic

? 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

18 Jan, 2025 05:02 PM
13 Jan, 2025 10:42 AM
29 Nov, 2024 10:00 AM
12 Jan, 2023 12:25 PM
10 Jan, 2023 04:49 PM