Mercurial > hg-stable
comparison tests/test-revset2.t @ 38287:f1d55ae2c5c8
revsets: define a none() revset
This can be useful for default values in corp-wide configuration
(e.g. for commits to hide, which defaults to none()), and perhaps in
scripts. I named it none() rather than empty() to match all().
Differential Revision: https://phab.mercurial-scm.org/D3713
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Mon, 11 Jun 2018 11:37:21 -0700 |
parents | 6ef01102ebff |
children | 52f19a840543 |
comparison
equal
deleted
inserted
replaced
38286:99188a7c8717 | 38287:f1d55ae2c5c8 |
---|---|
581 hg: parse error: empty query | 581 hg: parse error: empty query |
582 [255] | 582 [255] |
583 $ log 'parents("")' | 583 $ log 'parents("")' |
584 hg: parse error: empty string is not a valid revision | 584 hg: parse error: empty string is not a valid revision |
585 [255] | 585 [255] |
586 | |
587 test empty revset | |
588 $ hg log 'none()' | |
586 | 589 |
587 we can use patterns when searching for tags | 590 we can use patterns when searching for tags |
588 | 591 |
589 $ log 'tag("1..*")' | 592 $ log 'tag("1..*")' |
590 abort: tag '1..*' does not exist! | 593 abort: tag '1..*' does not exist! |