Mercurial > hg
comparison mercurial/fileset.py @ 26194:fc65d63ef3b9
help: filesets show hg status command
author | timeless@mozdev.org |
---|---|
date | Tue, 08 Sep 2015 11:30:01 -0400 |
parents | a7527c5769bb |
children | 5a3338e0faf7 |
comparison
equal
deleted
inserted
replaced
26193:47e60ed4834f | 26194:fc65d63ef3b9 |
---|---|
130 def listset(mctx, a, b): | 130 def listset(mctx, a, b): |
131 raise error.ParseError(_("can't use a list in this context")) | 131 raise error.ParseError(_("can't use a list in this context")) |
132 | 132 |
133 def modified(mctx, x): | 133 def modified(mctx, x): |
134 """``modified()`` | 134 """``modified()`` |
135 File that is modified according to status. | 135 File that is modified according to :hg:`status`. |
136 """ | 136 """ |
137 # i18n: "modified" is a keyword | 137 # i18n: "modified" is a keyword |
138 getargs(x, 0, 0, _("modified takes no arguments")) | 138 getargs(x, 0, 0, _("modified takes no arguments")) |
139 s = mctx.status().modified | 139 s = mctx.status().modified |
140 return [f for f in mctx.subset if f in s] | 140 return [f for f in mctx.subset if f in s] |
141 | 141 |
142 def added(mctx, x): | 142 def added(mctx, x): |
143 """``added()`` | 143 """``added()`` |
144 File that is added according to status. | 144 File that is added according to :hg:`status`. |
145 """ | 145 """ |
146 # i18n: "added" is a keyword | 146 # i18n: "added" is a keyword |
147 getargs(x, 0, 0, _("added takes no arguments")) | 147 getargs(x, 0, 0, _("added takes no arguments")) |
148 s = mctx.status().added | 148 s = mctx.status().added |
149 return [f for f in mctx.subset if f in s] | 149 return [f for f in mctx.subset if f in s] |
150 | 150 |
151 def removed(mctx, x): | 151 def removed(mctx, x): |
152 """``removed()`` | 152 """``removed()`` |
153 File that is removed according to status. | 153 File that is removed according to :hg:`status`. |
154 """ | 154 """ |
155 # i18n: "removed" is a keyword | 155 # i18n: "removed" is a keyword |
156 getargs(x, 0, 0, _("removed takes no arguments")) | 156 getargs(x, 0, 0, _("removed takes no arguments")) |
157 s = mctx.status().removed | 157 s = mctx.status().removed |
158 return [f for f in mctx.subset if f in s] | 158 return [f for f in mctx.subset if f in s] |
159 | 159 |
160 def deleted(mctx, x): | 160 def deleted(mctx, x): |
161 """``deleted()`` | 161 """``deleted()`` |
162 File that is deleted according to status. | 162 File that is deleted according to :hg:`status`. |
163 """ | 163 """ |
164 # i18n: "deleted" is a keyword | 164 # i18n: "deleted" is a keyword |
165 getargs(x, 0, 0, _("deleted takes no arguments")) | 165 getargs(x, 0, 0, _("deleted takes no arguments")) |
166 s = mctx.status().deleted | 166 s = mctx.status().deleted |
167 return [f for f in mctx.subset if f in s] | 167 return [f for f in mctx.subset if f in s] |
168 | 168 |
169 def unknown(mctx, x): | 169 def unknown(mctx, x): |
170 """``unknown()`` | 170 """``unknown()`` |
171 File that is unknown according to status. These files will only be | 171 File that is unknown according to :hg:`status`. These files will only be |
172 considered if this predicate is used. | 172 considered if this predicate is used. |
173 """ | 173 """ |
174 # i18n: "unknown" is a keyword | 174 # i18n: "unknown" is a keyword |
175 getargs(x, 0, 0, _("unknown takes no arguments")) | 175 getargs(x, 0, 0, _("unknown takes no arguments")) |
176 s = mctx.status().unknown | 176 s = mctx.status().unknown |
177 return [f for f in mctx.subset if f in s] | 177 return [f for f in mctx.subset if f in s] |
178 | 178 |
179 def ignored(mctx, x): | 179 def ignored(mctx, x): |
180 """``ignored()`` | 180 """``ignored()`` |
181 File that is ignored according to status. These files will only be | 181 File that is ignored according to :hg:`status`. These files will only be |
182 considered if this predicate is used. | 182 considered if this predicate is used. |
183 """ | 183 """ |
184 # i18n: "ignored" is a keyword | 184 # i18n: "ignored" is a keyword |
185 getargs(x, 0, 0, _("ignored takes no arguments")) | 185 getargs(x, 0, 0, _("ignored takes no arguments")) |
186 s = mctx.status().ignored | 186 s = mctx.status().ignored |
187 return [f for f in mctx.subset if f in s] | 187 return [f for f in mctx.subset if f in s] |
188 | 188 |
189 def clean(mctx, x): | 189 def clean(mctx, x): |
190 """``clean()`` | 190 """``clean()`` |
191 File that is clean according to status. | 191 File that is clean according to :hg:`status`. |
192 """ | 192 """ |
193 # i18n: "clean" is a keyword | 193 # i18n: "clean" is a keyword |
194 getargs(x, 0, 0, _("clean takes no arguments")) | 194 getargs(x, 0, 0, _("clean takes no arguments")) |
195 s = mctx.status().clean | 195 s = mctx.status().clean |
196 return [f for f in mctx.subset if f in s] | 196 return [f for f in mctx.subset if f in s] |