mercurial/helptext/deprecated.txt
author Martin von Zweigbergk <martinvonz@google.com>
Thu, 13 Feb 2020 21:14:20 -0800
changeset 44427 acbfa31cfaf2
parent 43676 2e017696181f
permissions -rw-r--r--
debugmergestate: make templated Our IntelliJ team wants to be able to read the merge state in order to help the user resolve merge conflicts. They had so far been reading file contents from p1() and p2() and their merge base. That is not ideal for several reasons (merge base is not necessarily the "graft base", renames are not handled, commands like `hg update -m` is not handled). It will get especially bad as of my D7827. This patch makes the output s a templated. I haven't bothered to make it complete (e.g. merge driver states are not handled), but it's probably good enough as a start. I've done a web search for "debugmergestate" and I can't find any indication that any tools currently rely on its output. If it turns out that we get bug reports for it once this is released, I won't object to backing this patch out on the stable branch (and then perhaps replace it by a separate command, or put it behind a new flag). The changes in test-backout.t are interesting, in particular this: ``` - other path: foo (node not stored in v1 format) + other path: (node foo) ``` I wonder if that means that we actually read v1 format incorrectly. That seems to be an old format that was switched away from in 2014, so it doesn't matter now anyway. Differential Revision: https://phab.mercurial-scm.org/D8120
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
38041
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
     1
Mercurial evolves over time, some features, options, commands may be replaced by
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
     2
better and more secure alternatives. This topic will help you migrating your
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
     3
existing usage and/or configuration to newer features.
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
     4
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
     5
Commands
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
     6
========
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
     7
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
     8
The following commands are still available but their use are not recommended:
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
     9
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    10
``locate``
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    11
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    12
This command has been replaced by `hg files`.
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    13
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    14
``parents``
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    15
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    16
This command can be replaced by `hg summary` or `hg log` with appropriate
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    17
revsets. See `hg help revsets` for more information.
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    18
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    19
``tip``
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    20
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    21
The recommended alternative is `hg heads`.
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    22
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    23
Options
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    24
=======
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    25
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    26
``web.allowpull``
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    27
    Renamed to `allow-pull`.
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    28
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    29
``web.allow_push``
5fa4e29ba3e3 help: add new deprecated topic
David Demelier <markand@malikania.fr>
parents:
diff changeset
    30
    Renamed to `allow-push`.