Im confuesed and lost : Using mercurial

Jens Alfke jens at mooseyard.com
Mon Aug 6 15:04:35 UTC 2007


On 6 Aug '07, at 2:39 AM, sanz66 wrote:

> 2. How do I create the modules ,submodules for that repository? and  
> where on the servers end on the clients end buff so confused its so  
> different than cvsnt .
>
> Repo 1
>          module x
>               submodule x1

Keep in mind that in hg a "repository" is identical to a "working  
set". There's no intrinsic difference between a source tree you check  
out via 'hg clone', and a repository on a server. That's what makes  
it distributed — any source tree can serve as an upstream repository  
for other source trees.

So to create a repository on a server you just use the same 'hg'  
commands you would locally. To set up my own existing projects for  
Mercurial, I first converted the source trees into repos locally with  
'hg init'; then on the server I used 'hg init' in a new empty  
directory to create the repo there; then locally I ran 'hg push'  
using an ssh: URL pointing to the server repository, to upload  
everything to the server.

In your diagram I don't know what you mean by 'module' and  
'submodule'. Is that terminology from some other version control  
system? I think a 'module' would just be a subdirectory in a  
repository; in hg these are added implicitly when you use 'hg add' to  
add files in a subdirectory.

Hope this helps, and isn't inaccurate; I'm new to hg myself (though I  
have some prior experience with Monotone and Bzr.)

> Everythng i find on the net and on the oficial mercurials web site  
> doesnt help or confuses me even more.

Did you read the book <http://hgbook.red-bean.com/>? I found that to  
be very helpful and well-written. If parts of it are unclear to you,  
you might tell the author which ones, to improve future editions of  
the book.

--Jens
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20070806/a997568f/attachment-0001.html>


More information about the Mercurial mailing list