[PATCH 0 of 2] Make init command require a destination directory
Goffredo Baroncelli
kreijack at libero.it
Wed Jul 6 12:17:19 CDT 2005
On Wednesday 06 July 2005 18:20, Bryan O'Sullivan wrote:
> These patches modify the init command so that it requires a destination
^^^^^^^^
> directory, which it creates.
>
> It is thus no longer necessary to do this:
>
> mkdir foo
> cd foo
> hg init
>
> Instead, you do this:
>
> hg init foo
>
I don't like the patch for three reasons:
1) the old init behaviour was very different: if a second parameters was passed, the
command cloned the directory pointed by the parameter itself. Now the behaviour introduced by
this patch is very different: it may introduce confusion for the user
2) I don't like the idea that a command ( as mercurial ) do anything which can be better done
with _the dedicated_ command ( mkdir has a lot of option which is not in "hg init", as the
-p switch ):
- it is redundant
- is not the unix way: make _simple_ tools which can work togheter
3) I don't see the reason why 'hg init' should _require_ a second parameters; if it is passed,
hg can make the directory, but if not passed the command should work as the current
behaviour.
My 2¢....
Goffredo
--
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijack AT inwind DOT it>
Key fingerprint = CE3C 7E01 6782 30A3 5B87 87C0 BB86 505C 6B2A CFF9
More information about the Mercurial
mailing list