Gern Blanston
Gern Blanston

Reputation: 42660

Do all files have to be in the 'repository folder' when using Mercurial?

This is my first time using Mercurial so this may be a very newbie question...

If I create a repository, e.g. c:\HG1 do all my files need to be under that directory?

Or can i add files from a different folder e.g. 'C:\myotherfolder'?

If you can add from diff folder...how, can't seem to figure it out.

thanks.

p.s. I'm coming from a non-distributed source control system so perhaps I'm just thinking about my workflows with that mindset.

Upvotes: 2

Views: 112

Answers (2)

Corgalore
Corgalore

Reputation: 2566

No they don't, you can use a symlink (mklink on windows) in order to link another folder into your repository that is not in the same parent folder.

See my answer to a similar question here: https://stackoverflow.com/a/19473449/471924

Upvotes: 0

Mason
Mason

Reputation: 721

Yes, all of the files to be tracked must be under the root repository folder.

Upvotes: 2

Related Questions