[PATCH 0 of 2] Make init command require a destination directory
Bryan O'Sullivan
bos at serpentine.com
Wed Jul 6 13:47:27 CDT 2005
On Wed, 2005-07-06 at 10:24 -0700, Matt Mackall wrote:
> _Requires_? This breaks importing an existing project in place.
Then I must have misunderstood your request.
What should be the semantics, then? Let me have a stab.
* If there's no directory passed, use "." as the destination.
* If there's a directory passed, use it as the destination.
* If the destination doesn't exist, create it.
* If the destination already contains a .hg directory, error out.
What if we run "hg init" inside an existing repository? This case
should probably be skipped, as it would make it impossible to revision-
control $HOME and have repositories in there.
<b
More information about the Mercurial
mailing list