diff tests/test-pull.t @ 41680:8185c8abce87

revset: add expectsize to check the size of a set `expectsize(<set>, <int>)` revset fails if `<set>` is not exactly `<int>` elements. `expectsize(<set>, <min>:<max>)` revset fails if `<set>` is not exactly between `<min>` and `<max>` inclusive. This then allows an alias for `hg next` to be `update -r one(children(.))` with sane failure behavior, and also makes some other scripting tasks a little less difficult. (Summary from WeShouldDoThat) Differential Revision: https://phab.mercurial-scm.org/D5813
author Navaneeth Suresh <navaneeths1998@gmail.com>
date Sun, 03 Feb 2019 19:10:39 +0530
parents 5abc47d4ca6b
children 50b69c08651b
line wrap: on
line diff