| 32 | } |
| 33 | |
| 34 | bool VcsMapResource::load() |
| 35 | { |
| 36 | auto result = MapResource::load(); |
| 37 | |
| 38 | if (result) |
| 39 | { |
| 40 | // Set the name string to contain the revision of the map |
| 41 | auto mapName = fmt::format("{0}@{1}", os::getFilename(vcs::getVcsFilePath(_mapFileUri)), |
| 42 | vcs::getVcsRevision(_mapFileUri).substr(0, 7)); |
| 43 | getRootNode()->setName(mapName); |
| 44 | } |
| 45 | |
| 46 | return result; |
| 47 | } |
| 48 | |
| 49 | bool VcsMapResource::isReadOnly() |
| 50 | { |
nothing calls this directly
no test coverage detected