How do I push a new project to a shared Mercurial multi-repository?
Posted
by j-g-faustus
on Stack Overflow
See other posts from Stack Overflow
or by j-g-faustus
Published on 2010-05-11T11:40:03Z
Indexed on
2010/05/11
11:44 UTC
Read the original article
Hit count: 307
mercurial
|project-structure
I have a local machine ("laptop") and a shared Mercurial repository on another machine ("server").
The shared repository is set up as a multi-repository as described in the Mercurial documentation using Apache, the hgwebdir.cgi script and Mercurial 1.4.
The setup works in the sense that I can browse the projects (repositories) in the web browser, I can clone and pull from the server, and I can push from the laptop when the project/repository already exists on the server.
But I cannot create a new project on the laptop (hg init, do stuff, hg commit) and push it to the shared multi-repository (hg push http://server/hg/my-new-project-name) - I get "abort: HTTP Error 404: Not Found", presumably because the directory/project repository does not exist yet.
How can I push a new project/directory structure to a Mercurial running elsewhere? I couldn't find anything in the documentation, how do you guys do it?
© Stack Overflow or respective owner