# HG changeset patch # User Andrey Vlasovskikh # Date 1259365844 -10800 # Node ID a7f910d43c72c3d2b1dcb52377a2bc5dc7148e70 # Parent 106b89a8f118c4a7d2f2de2ef39c736a9b2e1251 A proposal for adding more filter expressions (cec) diff -r 106b89a8f118 -r a7f910d43c72 .issues/cec60e25154133d3/new/1259365663.M969393P10754Q1.vlan-laptop --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.issues/cec60e25154133d3/new/1259365663.M969393P10754Q1.vlan-laptop Sat Nov 28 02:50:44 2009 +0300 @@ -0,0 +1,30 @@ +From: Andrey Vlasovskikh +Date: Sat, 28 Nov 2009 02:30:08 +State: new +Subject: Add more filter expressions: ~=, !=, !~= +Message-Id: + +At this moment only exact `=` is supported in filters. + +I propose adding the following constructs: + +* `~=` for "contains" +* `!~=` for "does not contain" +* `!=` for "is not equal to" + +Some examples of filters that use these constructs are provided below. + +All the tickes by John Smith that are not fixed: + + $ hg ilist -p from~=Smith -p state!=fixed + +All the tickets of John Smith by specifying his email: + + $ hg ilist -p to=~smith@example.com + +All the tickes of high priority (i. e. of `critical` priority or not prioritized +ones), notice that the logical "or" should be used for joining the same +properties: + + $ hg ilist -p priority!=minor -p priority!=trivial +