Show More
@@ -154,7 +154,7 b' def modified(mctx, x):' | |||||
154 | """ |
|
154 | """ | |
155 | # i18n: "modified" is a keyword |
|
155 | # i18n: "modified" is a keyword | |
156 | getargs(x, 0, 0, _("modified takes no arguments")) |
|
156 | getargs(x, 0, 0, _("modified takes no arguments")) | |
157 | s = mctx.status().modified |
|
157 | s = set(mctx.status().modified) | |
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 | @predicate('added()', callstatus=True) |
|
160 | @predicate('added()', callstatus=True) | |
@@ -163,7 +163,7 b' def added(mctx, x):' | |||||
163 | """ |
|
163 | """ | |
164 | # i18n: "added" is a keyword |
|
164 | # i18n: "added" is a keyword | |
165 | getargs(x, 0, 0, _("added takes no arguments")) |
|
165 | getargs(x, 0, 0, _("added takes no arguments")) | |
166 | s = mctx.status().added |
|
166 | s = set(mctx.status().added) | |
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 | @predicate('removed()', callstatus=True) |
|
169 | @predicate('removed()', callstatus=True) | |
@@ -172,7 +172,7 b' def removed(mctx, x):' | |||||
172 | """ |
|
172 | """ | |
173 | # i18n: "removed" is a keyword |
|
173 | # i18n: "removed" is a keyword | |
174 | getargs(x, 0, 0, _("removed takes no arguments")) |
|
174 | getargs(x, 0, 0, _("removed takes no arguments")) | |
175 | s = mctx.status().removed |
|
175 | s = set(mctx.status().removed) | |
176 | return [f for f in mctx.subset if f in s] |
|
176 | return [f for f in mctx.subset if f in s] | |
177 |
|
177 | |||
178 | @predicate('deleted()', callstatus=True) |
|
178 | @predicate('deleted()', callstatus=True) | |
@@ -181,7 +181,7 b' def deleted(mctx, x):' | |||||
181 | """ |
|
181 | """ | |
182 | # i18n: "deleted" is a keyword |
|
182 | # i18n: "deleted" is a keyword | |
183 | getargs(x, 0, 0, _("deleted takes no arguments")) |
|
183 | getargs(x, 0, 0, _("deleted takes no arguments")) | |
184 | s = mctx.status().deleted |
|
184 | s = set(mctx.status().deleted) | |
185 | return [f for f in mctx.subset if f in s] |
|
185 | return [f for f in mctx.subset if f in s] | |
186 |
|
186 | |||
187 | @predicate('missing()', callstatus=True) |
|
187 | @predicate('missing()', callstatus=True) | |
@@ -190,7 +190,7 b' def missing(mctx, x):' | |||||
190 | """ |
|
190 | """ | |
191 | # i18n: "missing" is a keyword |
|
191 | # i18n: "missing" is a keyword | |
192 | getargs(x, 0, 0, _("missing takes no arguments")) |
|
192 | getargs(x, 0, 0, _("missing takes no arguments")) | |
193 | s = mctx.status().deleted |
|
193 | s = set(mctx.status().deleted) | |
194 | return [f for f in mctx.subset if f in s] |
|
194 | return [f for f in mctx.subset if f in s] | |
195 |
|
195 | |||
196 | @predicate('unknown()', callstatus=True) |
|
196 | @predicate('unknown()', callstatus=True) | |
@@ -200,7 +200,7 b' def unknown(mctx, x):' | |||||
200 | """ |
|
200 | """ | |
201 | # i18n: "unknown" is a keyword |
|
201 | # i18n: "unknown" is a keyword | |
202 | getargs(x, 0, 0, _("unknown takes no arguments")) |
|
202 | getargs(x, 0, 0, _("unknown takes no arguments")) | |
203 | s = mctx.status().unknown |
|
203 | s = set(mctx.status().unknown) | |
204 | return [f for f in mctx.subset if f in s] |
|
204 | return [f for f in mctx.subset if f in s] | |
205 |
|
205 | |||
206 | @predicate('ignored()', callstatus=True) |
|
206 | @predicate('ignored()', callstatus=True) | |
@@ -210,7 +210,7 b' def ignored(mctx, x):' | |||||
210 | """ |
|
210 | """ | |
211 | # i18n: "ignored" is a keyword |
|
211 | # i18n: "ignored" is a keyword | |
212 | getargs(x, 0, 0, _("ignored takes no arguments")) |
|
212 | getargs(x, 0, 0, _("ignored takes no arguments")) | |
213 | s = mctx.status().ignored |
|
213 | s = set(mctx.status().ignored) | |
214 | return [f for f in mctx.subset if f in s] |
|
214 | return [f for f in mctx.subset if f in s] | |
215 |
|
215 | |||
216 | @predicate('clean()', callstatus=True) |
|
216 | @predicate('clean()', callstatus=True) | |
@@ -219,7 +219,7 b' def clean(mctx, x):' | |||||
219 | """ |
|
219 | """ | |
220 | # i18n: "clean" is a keyword |
|
220 | # i18n: "clean" is a keyword | |
221 | getargs(x, 0, 0, _("clean takes no arguments")) |
|
221 | getargs(x, 0, 0, _("clean takes no arguments")) | |
222 | s = mctx.status().clean |
|
222 | s = set(mctx.status().clean) | |
223 | return [f for f in mctx.subset if f in s] |
|
223 | return [f for f in mctx.subset if f in s] | |
224 |
|
224 | |||
225 | def func(mctx, a, b): |
|
225 | def func(mctx, a, b): |
General Comments 0
You need to be logged in to leave comments.
Login now