Fwd: Switch to git?
Martin Geisler
martin at geisler.net
Mon Dec 9 11:40:53 UTC 2013
Anton Shestakov <engored at gmail.com> writes:
> 2013/11/25 Martin Geisler <martin at geisler.net>:
>> We could check if the user has a large Git config file -- if so, we
>> create a ~/.hgrc file with rebase and histedit enabled when Mercurial is
>> first run :)
>
> Here's my two cents, if you don't mind.
>
> Some time ago I was working on a Debian machine without a configured
> default editor and when I tried to run hg ci, it would start
> `sensible-editor`, and, since it wasn't configured either, it would in
> turn start `select-editor` (both scripts are from sensible-utils
> package).
>
> It looked like this:
>
> ---
> Select an editor. To change later, run 'select-editor'.
> 1. /bin/ed
> 2. /bin/nano <---- easiest
> 3. /usr/bin/vim.basic
> 4. /usr/bin/vim.nox
>
> Choose 1-4 [2]:
> ---
>
> If mercurial had something like this --a basic, but interactive,
> configurator-- it would ideally cover every new user's needs without
> the need (from a user) to read about and then select extensions
> one-by-one and (from a script) to guess defaults by his git/bazaar/svn
> config file.
I think that could be pretty cool. Maybe Mercurial could say something
like this when you run it without a config file:
$ hg status
M foo
A bar
(run 'hg setup' to create a basic configuration file)
If that is put on stderr (only when in an interactive session), it might
be acceptable for our backwards compatibility rules?
--
Martin Geisler
http://google.com/+MartinGeisler | http://careers.stackoverflow.com/mg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20131209/60e72675/attachment.asc>
More information about the Mercurial
mailing list