sapling/mercurial/help
David Soria Parra 0e29dd10bc revset: lookup descendents for negative arguments to ancestor operator
Negative offsets to the `~` operator now search for descendents. The search is
aborted when a node has more than one child as we do not have a definition for
'nth child'. Optionally we can introduce such a notion and take the nth child
ordered by rev number.

The current revset language does provides a short operator for ancestor lookup
but not for descendents. This gives user a simple revset to move to the previous
changeset, e.g. `hg up '.~1'` but not to the 'next' changeset. With this change
userse can now use `.~-1` as a shortcut to move to the next changeset.
This fits better into allowing users to specify revisions via revsets and
avoiding the need for special `hg next` and `hg prev` operations.

The alternative to negative offsets is adding a new operator. We do not have
many operators in ascii left that do not require bash escaping (',', '_', and
'/' come to mind). If we decide that we should add a more convenient short
operator such as ('/', e.g. './1') we can later add it and allow ascendents
lookup via negative numbers.
2017-05-27 10:25:09 -07:00
..
internals revlog: skeleton support for version 2 revlogs 2017-05-19 20:29:11 -07:00
bundlespec.txt help: fix typos 2017-05-31 19:23:23 -03:00
color.txt help: update the color documentation for Windows 10 ANSI support 2017-05-22 22:32:59 -04:00
common.txt doc: make man and html from translated documents 2013-07-03 21:49:43 +09:00
config.txt help: update the color documentation for Windows 10 ANSI support 2017-05-22 22:32:59 -04:00
dates.txt doc: fix internal date sample (issue4072) 2013-10-29 21:54:49 +02:00
diffs.txt help: refer to user configuration file more consistently 2010-08-27 22:36:35 -04:00
environment.txt help: call out specific replacement configuration settings 2017-05-03 22:56:53 -04:00
extensions.txt doc: make it easier to read how to enable extensions 2013-06-06 14:05:03 -04:00
filesets.txt help: fix example of revs() fileset 2017-03-09 11:01:03 +09:00
glossary.txt glossary: fixup use of periods at end of entries 2015-08-28 12:18:12 -04:00
hg-ssh.8.txt help: replace selenic.com by mercurial-scm.org in man pages 2016-11-01 20:39:36 +09:00
hg.1.txt misc: update year in copyright lines 2017-02-12 02:23:33 +09:00
hgignore.5.txt misc: update year in copyright lines 2017-02-12 02:23:33 +09:00
hgignore.txt help: add documentation on include: and subinclude: 2015-05-20 14:54:09 -07:00
hgrc.5.txt misc: update year in copyright lines 2017-02-12 02:23:33 +09:00
hgweb.txt spelling: trivial spell checking 2015-10-17 00:58:46 +02:00
merge-tools.txt help: describe about choice of :prompt as a fallback merge tool explicitly 2017-05-06 02:33:00 +09:00
pager.txt help: clarify the choice of pager 2017-06-02 10:44:40 +02:00
patterns.txt match: adding support for matching files inside a directory 2017-02-13 15:39:29 -08:00
phases.txt phases: mention how to make secret commits in help 2015-12-22 20:10:22 +00:00
revisions.txt revset: lookup descendents for negative arguments to ancestor operator 2017-05-27 10:25:09 -07:00
scripting.txt help: update link to wiki/CommandServer 2016-08-04 10:42:03 +08:00
subrepos.txt serve: add support for Mercurial subrepositories 2017-04-15 18:05:40 -04:00
templates.txt help: spelling fixes 2017-05-03 22:07:47 -04:00
urls.txt help: stop documentation markup appearing in generated help 2013-05-15 22:19:12 +01:00