mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-09-10 09:13:58 -09:00
GP-3551 Added support for internal project link-files with improved link
support within project data tree. Linked-folders are now supported. Addressed link-support issues related to various actions. Revised link-file storage to use smaller non-DB storage. This change does impact the Ghidra Server.
This commit is contained in:
@@ -102,6 +102,8 @@ public class RepositoryFileUpgradeScript extends GhidraScript {
|
||||
}
|
||||
|
||||
private int listCheckouts(DomainFolder folder) throws IOException, CancelledException {
|
||||
// Avoid following folder-links so we don't count the same file more than once.
|
||||
// Link-files will never be in a checked-out state.
|
||||
int count = 0;
|
||||
for (DomainFile df : folder.getFiles()) {
|
||||
monitor.checkCancelled();
|
||||
@@ -115,8 +117,8 @@ public class RepositoryFileUpgradeScript extends GhidraScript {
|
||||
}
|
||||
|
||||
private int listCheckouts(DomainFile df) throws IOException {
|
||||
if (!df.isVersioned()) {
|
||||
return 0;
|
||||
if (!df.isVersioned() || df.isLink()) {
|
||||
return 0; // ignore non-versioned files and link-files
|
||||
}
|
||||
int count = 0;
|
||||
for (ItemCheckoutStatus checkout : df.getCheckouts()) {
|
||||
|
||||
Reference in New Issue
Block a user