How many repositories should I use to maintain my scripts under version control?

Posted by romandas on Stack Overflow See other posts from Stack Overflow or by romandas
Published on 2010-03-25T01:59:05Z Indexed on 2010/03/25 2:03 UTC
Read the original article Hit count: 360

I mainly code small programs for myself, but recently, I've been starting to code for my peers on my team. To that end, I've started using a Mercurial repository to maintain my code in some form of version control (specifically, Tortoise-Hg on Windows). I have many small scripts, each in their own directory, all under one repository. However, while reading Joel's Hg Tutorial, I tried cloning a directory for one of my bigger scripts to create a "stable" version and found I couldn't do it because the directory wasn't itself a repository.

So, I assume (and please correct me if I'm mistaken) that in order to use cloning properly, I'd have to create a repository for each script/directory. But.. would that be a "good idea" or a future maintenance nightmare waiting to happen?

Succinctly, do I keep all my (unrelated) scripts in one repository, or should I create a repository for each? Or some unknown third option?

© Stack Overflow or respective owner

Related posts about version-control

Related posts about mercurial