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

  • SEARCH
  • Home
  • 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 8053073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T07:44:18+00:00 2026-06-05T07:44:18+00:00

I am running an archival filesystem on a Windows server that does automatic offsite

  • 0

I am running an archival filesystem on a Windows server that does automatic offsite replication which makes it the ideal place to host Mercurial repositories and be sure of their safety. This filesystem is Windows-only so I have no choice but to use Windows as the host OS.

Setup:

Server (‘ungoliant’, internal to my network):

  • Windows 7 master repository host machine.
  • Cygwin ssh daemon.
  • hg 1.9.3
  • Created new repository “/cygdrive/j/mercurial/rcstudio” on Windows with “hg init”.

Clients:

  • Mac OSX 10.7.4 running hg 2.1.2
  • FreeBSD 8.3 running hg 2.1.2

Problem on Clients (identical on Mac and FreeBSD):

$ hg clone ssh://cjp@ungoliant//cygdrive/j/mercurial/rcstudio
running ssh cjp@ungoliant 'hg -R /cygdrive/j/mercurial/rcstudio serve --stdio'
remote: abort: There is no Mercurial repository here (.hg not found)!
abort: no suitable response from remote hg!

I’ve confirmed that the path and the URI are correct. There absolutely is an “.hg” directory there:

$ ls -la
total 0
drwxr-xr-x   3 cjp  staff   102 Jun  5 17:41 .
drwxr-xr-x  41 cjp  staff  1394 Jun  5 16:30 ..
$ scp -r cjp@ungoliant:/cygdrive/j/mercurial/rcstudio/.hg .
$ ls -la
total 0
drwxr-xr-x   3 cjp  staff   102 Jun  5 17:41 .
drwxr-xr-x  41 cjp  staff  1394 Jun  5 16:30 ..
drwxr-xr-x   5 cjp  staff   170 Jun  5 17:41 .hg
$ ls -la .hg
total 16
drwxr-xr-x  5 cjp  staff  170 Jun  5 17:41 .
drwxr-xr-x  3 cjp  staff  102 Jun  5 17:41 ..
-rw-r--r--  1 cjp  staff   57 Jun  5 17:41 00changelog.i
-rw-r--r--  1 cjp  staff   33 Jun  5 17:41 requires
drwxr-xr-x  2 cjp  staff   68 Jun  5 17:41 store

I’ve found plenty of stackoverflow questions where the issue was an improperly formatted ssh URI … mine is formatted correctly and describes an absolute path.

I have confirmed all the following:

  • hg commands run fine both on the server and through ssh.
  • If I paste the absolute path I am able to confirm the existence of the .hg directory through ssh.
  • Other hg commands manually issued through ssh succeed (e.g.: ssh cjp@ungoliant ‘cd /cygdrive/j/mercurial/rcstudio; hg diff;’).
  • On the host machine I can clone locally from that same absolute path.

I’m stumped here. The Mercurial docs make it sound like 2.1.2 should be able to clone from 1.9.3 parents, so it doesn’t appear to be a version conflict.

Would very much appreciate your help! Thanks!

  • 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-06-05T07:44:19+00:00Added an answer on June 5, 2026 at 7:44 am

    What I have ended up with is a workaround and not an answer.

    My own ignorance of remote ssh command processing lead to a misunderstanding. If I would ssh to the machine, “which hg” resulted with the cygwin-aware binary “/usr/bin/hg”, but if I did a remote command “ssh cjp@ungoliant ‘which hg'”, it returned the path to a windows binary I also have installed on that machine.

    I played with my .bashrc file and could not get remote command execution to prioritize the cygwin binary. The PATH doesn’t even include the Windows PATH entries, so I started hacking around the problem and eventually decided to stop fighting with it.

    I have since abandoned the entire idea because I’m convinced that even if I get it to work it will be a delicate kludge and not at all worth the time I’ve spent on it. I now host my repositories on a BSD box and I have a cron on the Windows machine that pulls from that repository onto the archival filesystem once every 24 hours. It’s simple and worked like a charm with zero problems.

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

Sidebar

Related Questions

Running jetty server with ant script that starts it. I keep getting this exception
Running ipconfig /all shows a Teredo Tunneling Pseudo-Interface. What is that? Does this have
Running Mercurial 2.0.2 on Windows: In my .hgrc: [subpaths] MYREPOS/(.*) = https://server/repos/\1 And in
Running an MVC web site that calls a WCF service. Site and service on
Running Ubuntu 11.04 on vagrant, mac os x 10.7.2. Running chef server. Trying to
Running Windows PHP 4.4.2 \cli\php.exe fails with an error Cannot find php4ts.dll if the
Running zookeeper 3.3.3. I have a znode that I am just trying to list,
Running Apache httpd on Windows, what is the usual method / tool to update
Running the following code on Windows 7 x64 #include <stdio.h> #include <errno.h> int main()
Running a remote shell via telnet (no ssh on the remote server), I need

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.