Mercurial > hg
comparison mercurial/help/config.txt @ 29413:31d3ab7985b8
ui: path option to declare which revisions to push by default
Now that we have a mechanism for declaring path sub-options, we can
start to pile on features!
Many power users have expressed frustration that bare `hg push`
attempts to push all local revisions to the remote. This patch
introduces the "pushrev" path sub-option to control which revisions
are pushed when no "-r" argument is specified.
The value of this sub-option is a revset, naturally.
A future feature addition could potentially introduce a "pushnames"
sub-options that declares the list of names (branches, bookmarks,
topics, etc) to push by default. The entire "what to push by default"
feature should probably be considered before this patch lands.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 26 Jun 2016 07:59:02 -0700 |
parents | ecc9b788fd69 |
children | fd93b15b5c30 |
comparison
equal
deleted
inserted
replaced
29412:b62bce819d0c | 29413:31d3ab7985b8 |
---|---|
1280 | 1280 |
1281 ``pushurl`` | 1281 ``pushurl`` |
1282 The URL to use for push operations. If not defined, the location | 1282 The URL to use for push operations. If not defined, the location |
1283 defined by the path's main entry is used. | 1283 defined by the path's main entry is used. |
1284 | 1284 |
1285 ``pushrev`` | |
1286 A revset defining which revisions to push by default. | |
1287 | |
1288 When :hg:`push` is executed without a ``-r`` argument, the revset | |
1289 defined by this sub-option is evaluated to determine what to push. | |
1290 | |
1291 For example, a value of ``.`` will push the working directory's | |
1292 revision by default. | |
1293 | |
1294 Revsets specifying bookmarks will not result in the bookmark being | |
1295 pushed. | |
1296 | |
1285 The following special named paths exist: | 1297 The following special named paths exist: |
1286 | 1298 |
1287 ``default`` | 1299 ``default`` |
1288 The URL or directory to use when no source or remote is specified. | 1300 The URL or directory to use when no source or remote is specified. |
1289 | 1301 |