Fwd: Switch to git?

Anton Shestakov engored at gmail.com
Sun Nov 24 21:53:48 CST 2013


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.


More information about the Mercurial mailing list