Show More
@@ -931,22 +931,6 b' class committablectx(basectx):' | |||||
931 | def _date(self): |
|
931 | def _date(self): | |
932 | return util.makedate() |
|
932 | return util.makedate() | |
933 |
|
933 | |||
934 | def status(self, ignored=False, clean=False, unknown=False): |
|
|||
935 | """Explicit status query |
|
|||
936 | Unless this method is used to query the working copy status, the |
|
|||
937 | _status property will implicitly read the status using its default |
|
|||
938 | arguments.""" |
|
|||
939 | stat = self._repo.status(ignored=ignored, clean=clean, unknown=unknown) |
|
|||
940 | self._unknown = self._ignored = self._clean = None |
|
|||
941 | if unknown: |
|
|||
942 | self._unknown = stat[4] |
|
|||
943 | if ignored: |
|
|||
944 | self._ignored = stat[5] |
|
|||
945 | if clean: |
|
|||
946 | self._clean = stat[6] |
|
|||
947 | self._status = stat[:4] |
|
|||
948 | return stat |
|
|||
949 |
|
||||
950 | def user(self): |
|
934 | def user(self): | |
951 | return self._user or self._repo.ui.username() |
|
935 | return self._user or self._repo.ui.username() | |
952 | def date(self): |
|
936 | def date(self): | |
@@ -1229,6 +1213,22 b' class workingctx(committablectx):' | |||||
1229 | pass |
|
1213 | pass | |
1230 | return modified, fixup |
|
1214 | return modified, fixup | |
1231 |
|
1215 | |||
|
1216 | def status(self, ignored=False, clean=False, unknown=False): | |||
|
1217 | """Explicit status query | |||
|
1218 | Unless this method is used to query the working copy status, the | |||
|
1219 | _status property will implicitly read the status using its default | |||
|
1220 | arguments.""" | |||
|
1221 | stat = self._repo.status(ignored=ignored, clean=clean, unknown=unknown) | |||
|
1222 | self._unknown = self._ignored = self._clean = None | |||
|
1223 | if unknown: | |||
|
1224 | self._unknown = stat[4] | |||
|
1225 | if ignored: | |||
|
1226 | self._ignored = stat[5] | |||
|
1227 | if clean: | |||
|
1228 | self._clean = stat[6] | |||
|
1229 | self._status = stat[:4] | |||
|
1230 | return stat | |||
|
1231 | ||||
1232 |
|
1232 | |||
1233 | class committablefilectx(basefilectx): |
|
1233 | class committablefilectx(basefilectx): | |
1234 | """A committablefilectx provides common functionality for a file context |
|
1234 | """A committablefilectx provides common functionality for a file context |
General Comments 0
You need to be logged in to leave comments.
Login now