0

I want to create a repository on the remote server .

Access constraint that I have :

(a) IP address (of server) (b) username/pw

I am following this tutorial and stuck in the first step :"Initial access to mercurial-server"

I am not able to understand those "ssh connection" syntax (specially the my-key)

How could I connect to remote server(using ssh-agent ) i order to create new repo .

Subhransu Mishra
  • 3,035
  • 11
  • 40
  • 47

1 Answers1

2

This is the same problem we see again and again. mercurial-server isn't a part of Mercurial. It's a separate, third party, not generally necessary piece of software that tries to make mercurial administration easier without really succeeding.

Start here: https://www.mercurial-scm.org/wiki/PublishingRepositories/

and pick the type of access you want, http or ssh and then use either hgweb.cgi + apache (for http) or nothing at all if you just want to use ssh.

Specifically, for any server that has the mercurial client on it (apt-get install mercurial on debian or ubuntu and yum install mercurial on redhat, fedora, or centos) you don't need any extra software at all for hosting mercurial repositories over ssh. You can just do:

hg clone myLocalrepo ssh://you@thatserver/myRemoteRepo

and poof you're hosting there.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
Ry4an Brase
  • 78,112
  • 7
  • 148
  • 169
  • thanks a lot , But I want to create new repo on the remote server by taking project files from http.myproject.com/path/to/project.zip . Does the "last" command will work for that . – Subhransu Mishra Jul 26 '12 at 06:58
  • Please could you be more generous and answer [to this question](http://stackoverflow.com/questions/11668065/how-to-create-new-repo-of-existing-projectmercurial) as well . – Subhransu Mishra Jul 26 '12 at 11:17