Progress downloading and indexing data during a fetch.
| 110 | |
| 111 | |
| 112 | class TransferProgress: |
| 113 | """Progress downloading and indexing data during a fetch.""" |
| 114 | |
| 115 | total_objects: int |
| 116 | indexed_objects: int |
| 117 | received_objects: int |
| 118 | local_objects: int |
| 119 | total_deltas: int |
| 120 | indexed_deltas: int |
| 121 | received_bytes: int |
| 122 | |
| 123 | def __init__(self, tp: Any) -> None: |
| 124 | self.total_objects = tp.total_objects |
| 125 | """Total number of objects to download""" |
| 126 | |
| 127 | self.indexed_objects = tp.indexed_objects |
| 128 | """Objects which have been indexed""" |
| 129 | |
| 130 | self.received_objects = tp.received_objects |
| 131 | """Objects which have been received up to now""" |
| 132 | |
| 133 | self.local_objects = tp.local_objects |
| 134 | """Local objects which were used to fix the thin pack""" |
| 135 | |
| 136 | self.total_deltas = tp.total_deltas |
| 137 | """Total number of deltas in the pack""" |
| 138 | |
| 139 | self.indexed_deltas = tp.indexed_deltas |
| 140 | """Deltas which have been indexed""" |
| 141 | |
| 142 | self.received_bytes = tp.received_bytes |
| 143 | """"Number of bytes received up to now""" |
| 144 | |
| 145 | |
| 146 | class Remote: |
no outgoing calls
no test coverage detected
searching dependent graphs…