Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6934149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:55:23+00:00 2026-05-27T11:55:23+00:00

all, I have searched for this problem for long time and tried different methods.

  • 0

all,

I have searched for this problem for long time and tried different methods.

I want to maintain my code on the server through only SSH. But when I run this:

sudo hg clone -v ssh://carl@hostname//home/carl/Java/Projects/peta/

Mercurial keeps telling me remote: abort: There is no Mercurial repository here (.hg not found)!. Some articles said that the path should be correct and there should be a .hg directory there. But I have checked it for several times and I am sure there is a .hg folder at the right place.

I also tried

hg --config ui.remotecmd=/usr/bin/hg clone ssh://carl@hostname//home/carl/Java/Projects/peta/

But it failed as well. What other problem it could be? Thanks.


Solved

I finally fix the problem. Previously, I create a repository on my local machine, and scp all files (including .hg) on to the server. I try to remove .hg directory first, and create a repo on the server through ssh (hg init). Then hg clone works!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:55:24+00:00Added an answer on May 27, 2026 at 11:55 am

    Extraction from hg help urls

    Some notes about using SSH with Mercurial:

    • SSH requires an accessible shell account on the destination machine and
      a copy of hg in the remote path or specified with as remotecmd.
    • path is relative to the remote user’s home directory by default. Use an
      extra slash at the start of a path to specify an absolute path:

      ssh://example.com//tmp/repository

    this means, at least, that you can’t use the same URI and change only one/two slash it it: at least one path will be non-existent.

    Consequence of the quote and error message: you must to debug (with any ssh-tool) and find correct path to needed directory. you can:

    • use scp (f.e) and copy known file from known location
    • SSH into remote host in interactive session and verify path (both?) by hand, i.e: ssh …, cd …, pwd, verify output of pwd
    • … any other debugger

    When you’ll get good path after login, you have to check next point of failure – .hg dir permissions

    After verification of these checkpoints you’ll get clone and some bonus in the form of understanding “What happened before”

    HTH

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've have searched on this and it seems to be a catch all, unfortunately
OK I have looked and searched all i want to do is fire a
My problem is this: I have 16 x different sizes of flash files. (banners)
I have searched and searched for a solution to this problem, but it seems
To begin, I must say that I have searched for quite a long time
I have searched but i didn't found any solution to my problem. I want
IS this straightforward? Does any one have any good examples? All my google searches
I have this code basis: echo '<input required type = text name = subject1
I have searched this web looking for an answer, but it seems that this
Ok I have searched all over and I can't not seem to find the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.