Show More
@@ -1236,21 +1236,28 b' class workingctx(committablectx):' | |||||
1236 |
|
1236 | |||
1237 | return [modified, added, removed, deleted, unknown, ignored, clean] |
|
1237 | return [modified, added, removed, deleted, unknown, ignored, clean] | |
1238 |
|
1238 | |||
1239 | def status(self, ignored=False, clean=False, unknown=False): |
|
1239 | def status(self, ignored=False, clean=False, unknown=False, match=None): | |
1240 | """Explicit status query |
|
1240 | """Explicit status query | |
1241 | Unless this method is used to query the working copy status, the |
|
1241 | Unless this method is used to query the working copy status, the | |
1242 | _status property will implicitly read the status using its default |
|
1242 | _status property will implicitly read the status using its default | |
1243 | arguments.""" |
|
1243 | arguments.""" | |
1244 | stat = self._repo.status(ignored=ignored, clean=clean, unknown=unknown) |
|
1244 | listignored, listclean, listunknown = ignored, clean, unknown | |
|
1245 | s = self._dirstatestatus(match=match, ignored=listignored, | |||
|
1246 | clean=listclean, unknown=listunknown) | |||
|
1247 | modified, added, removed, deleted, unknown, ignored, clean = s | |||
|
1248 | ||||
|
1249 | modified = self._filtersuspectsymlink(modified) | |||
|
1250 | ||||
1245 | self._unknown = self._ignored = self._clean = None |
|
1251 | self._unknown = self._ignored = self._clean = None | |
1246 | if unknown: |
|
1252 | if listunknown: | |
1247 |
self._unknown = |
|
1253 | self._unknown = unknown | |
1248 | if ignored: |
|
1254 | if listignored: | |
1249 |
self._ignored = |
|
1255 | self._ignored = ignored | |
1250 | if clean: |
|
1256 | if listclean: | |
1251 |
self._clean = |
|
1257 | self._clean = clean | |
1252 | self._status = stat[:4] |
|
1258 | self._status = modified, added, removed, deleted | |
1253 | return stat |
|
1259 | ||
|
1260 | return modified, added, removed, deleted, unknown, ignored, clean | |||
1254 |
|
1261 | |||
1255 |
|
1262 | |||
1256 | class committablefilectx(basefilectx): |
|
1263 | class committablefilectx(basefilectx): |
General Comments 0
You need to be logged in to leave comments.
Login now