Каков лучший и обязательный hg / подвижные расширения? [закрытый]

Компилятор оптимизирует, он так или иначе - идет для переключателя, поскольку это является самым читаемым.

73
задан 4 revs, 3 users 58% 28 March 2017 в 17:46
поделиться

2 ответа

My own hit list:

The simple ones you must have:

  1. color: colorize output from commands like diff and status, which makes it easier to assess.
  2. pager: browse long output a page at a time.
  3. fetch: pull, update and merge from another repo in one step.
  4. graphlog: display revision graphs in your shell, incredibly useful for looking at the branches in your log history.
  5. hgk: browse the repository with a graphical interface (see also TortoiseHg and Murky)

If you enable pager, you should configure it to not interfere with certain commands:

[pager]
pager = LESS='FSRX' less
ignore = version, help, update, serve, record

The intermediate extensions I highly recommend (and use frequently):

  1. record: lets you interactively select hunks of files to commit - perfect for when you are in the middle of one set of changes, and you end up fixing something that should have its own commit.
  2. extdiff: configure an external diff tool (such as meld)
  3. share: have multiple clones use the same repo history

The Advanced extensions I would not be without:

  1. mq: manage a stack of patches. Very powerful, allows layering of patches on top of the tree.
  2. notify: send email notifications when a repo is changed.
  3. rebase: reapply local changes on top of a new parent revision.
  4. largefiles: work with large binary files outside the hg store

All the above are bundled with Mercurial, and are stable and well-tested. I highly recommend all of them.

Non-core extensions worth investigating:

  1. shelve: selectively put aside changes (at the granularity of hunks) and restore them.
  2. acl: selectively allow access to different parts of the repository tree

Superseded extensions and migrated to core (info from @durin42):

  • forest was been superseded by the subrepo support introduced in v1.3
  • bookmarks is in core and always enabled
  • transplant is superseded by graft, a core command
  • histedit is in core as of v2.3, but is disabled by default
  • inotify is not recommended, as there is apparently a bug due to a race condition
98
ответ дан 24 November 2019 в 12:20
поделиться

graphlog и mq особенно хороши.

  1. Convert: преобразовать в другие системы и из них
  2. Mq (Mercurial Queues): обрабатывать изменения как стек патчей
  3. Forest: позволяет фиксировать и обновлять сразу несколько вложенных репозиториев Mercurial
  4. Совместное использование: для экономии времени и дискового пространства при работе с аналогичными репозиториями
  5. Hgk: дает графическое представление истории
  6. Graphlog: я всегда набираю «hg glog», а не «hg log». Взгляд на историю в формате ascii art
  7. Transplant: полезно, когда вы хотите объединить только несколько наборов изменений из другой ветки. Более новый hg rebase может частично пересекаться.
  8. Rebase: Другой способ обработки изменений в виде набора изменений в верхней части ветви. git пользователи хотели бы перебазировать. Может заменить mq во многих случаях использования.
  9. Полка: место для хранения изменений рабочей копии, если вам нужно какое-то время поработать над чем-то другим.
  10. Закладки: Назовите самую новую фиксацию в определенной ветке. Подобно веткам git .
9
ответ дан 24 November 2019 в 12:20
поделиться
Другие вопросы по тегам:

Похожие вопросы: