| 124 | raise NoRemoteError(error_msg) |
| 125 | |
| 126 | def get_remote_odb( |
| 127 | self, |
| 128 | name: Optional[str] = None, |
| 129 | command: str = "<command>", |
| 130 | hash_name: str = "md5", |
| 131 | ) -> "HashFileDB": |
| 132 | from dvc.cachemgr import LEGACY_HASH_NAMES |
| 133 | |
| 134 | remote = self.get_remote(name=name, command=command) |
| 135 | if remote.fs.version_aware or remote.worktree: |
| 136 | raise RemoteConfigError( |
| 137 | f"'{command}' is unsupported for cloud versioned remotes" |
| 138 | ) |
| 139 | if hash_name in LEGACY_HASH_NAMES: |
| 140 | return remote.legacy_odb |
| 141 | return remote.odb |
| 142 | |
| 143 | def _log_missing(self, status: "CompareStatusResult"): |
| 144 | if status.missing: |