folder structure in a mercurial repo?

Posted by ajsie on Stack Overflow See other posts from Stack Overflow or by ajsie
Published on 2010-04-16T05:23:54Z Indexed on 2010/04/16 6:23 UTC
Read the original article Hit count: 231

Filed under:
|

I have just switched from svn to mercurial and have read some tutorials about it.
I've still got some confusions that i hope you could help me to sort out.
I wonder if I have understood the folder structure in a mercurial repo right.
In a svn repo I usually have these folders:

svn:

branches (branches/chat, branches/new_login etc)
tags (version1.0, version2.0 etc)
sandbox
trunk

Should a branch actually be another clone of the original/central repo in mercurial?
it seemed like that when I read the manual.

And a tag is just a named identifier, but you should clone the original/central repo whenever you want to create a tag?

How about the sandbox? should that be another clone too?

So basically you just have in a repo all the folders/files that you would have in the trunk folder?

mercurial:

central repo: projects folders/files (not in any parentfolder)
tag repo: cloned from central repo at a given moment for release 
  (version1.0, version2.0 etc)
branch repo: cloned from central repo for adding features (chat, new_login etc)
sandbox repo: experimental repo (could be pushed to central repo, or just deleted)

is this correct?

© Stack Overflow or respective owner

Related posts about mercurial

Related posts about svn