<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<br><div><div>On 6 Aug '07, at 2:39 AM, sanz66 wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>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 .</div><div><div> </div><div>Repo 1<br>         module x<br>              submodule x1<br></div></div></blockquote></div><br><div>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.</div><div><br class="webkit-block-placeholder"></div><div>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.</div><div><br class="webkit-block-placeholder"></div><div>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.</div><div><br class="webkit-block-placeholder"></div><div>Hope this helps, and isn't inaccurate; I'm new to hg myself (though I have some prior experience with Monotone and Bzr.)</div><div><br class="webkit-block-placeholder"></div><div><blockquote type="cite" class=""><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Arial" size="1" style="font: 9.0px Arial">Everythng i find on the net and on the oficial mercurials web site doesnt help or confuses me even more.</font></div> </blockquote><br class="webkit-block-placeholder"></div><div>Did you read the book &lt;<a href="http://hgbook.red-bean.com">http://hgbook.red-bean.com</a>/&gt;? 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.</div><div><br class="webkit-block-placeholder"></div><div>--Jens</div></body></html>