(self)
| 111 | return 0 |
| 112 | |
| 113 | def run(self) -> int: |
| 114 | with log_durations(logger.trace, "in data_status"): |
| 115 | status = self.repo.data_status( |
| 116 | targets=self.args.targets, |
| 117 | granular=self.args.granular, |
| 118 | untracked_files=self.args.untracked_files, |
| 119 | remote=self.args.remote, |
| 120 | not_in_remote=self.args.not_in_remote, |
| 121 | remote_refresh=self.args.remote_refresh, |
| 122 | ) |
| 123 | |
| 124 | if not self.args.unchanged: |
| 125 | status.pop("unchanged") # type: ignore[misc] |
| 126 | if self.args.untracked_files == "no": |
| 127 | status.pop("untracked") |
| 128 | if self.args.json: |
| 129 | status.pop("git") # type: ignore[misc] |
| 130 | ui.write_json(compact(status)) |
| 131 | return 0 |
| 132 | return self._show_status(status) |
| 133 | |
| 134 | |
| 135 | def add_parser(subparsers, parent_parser): |
nothing calls this directly
no test coverage detected