Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can one Mercurial repository live inside another Mercurial repository?

Can one hg repo live inside another hg repo on my local file system?

screenshot of one repo inside another

I am pulling down the bitbucket wiki for 'sandbox', and I want to know if this should be placed in repos/sandbox/wiki or repos/sandbox-wiki.

Is the former okay to do?

Edit: See Subrepository.

like image 656
Robert Claypool Avatar asked May 20 '10 13:05

Robert Claypool


People also ask

What is a subrepository?

Subrepositories is a feature that allows you to treat a collection of repositories as a group. This will allow you to clone, commit to, push, and pull projects and their associated libraries as a group.

What is a Mercurial repository?

What Is Mercurial? Mercurial is a free, distributed version control system. It's also referred to as a revision control system or Mercurial source control. It is used by software development teams to manage and track changes across projects.

What is a repository root?

The repository root directory is the parent directory of the . hg directory. Mercurial stores its internal data structures – the metadata – inside that . hg directory. All of the files and directories that coexist with the .

How do I create a Mercurial repository?

Create a local Mercurial repository Open the project you want to store in a repository. From the main menu, choose Hg | Create Mercurial Repository. Specify the location of the new repository. When the repository has been created, you will see a notification.


1 Answers

The short answer is yes, but I can't imagine why you would want to.

In your example, I think you should go with:

repos/sandbox-wiki

[edit] Additionaly:

Yo Dowg, I herd you like repositories.

So we put a repo in your repo so you can version while you version

:-)

like image 157
0atman Avatar answered Sep 30 '22 02:09

0atman