salesforce / p4-fusion

A fast Perforce to Git conversion tool written in C++ using Perforce Helix Core C++ API and Libgit2
BSD 3-Clause "New" or "Revised" License
78 stars 17 forks source link

--includeBinaries option causes hang #72

Closed ppavacic closed 9 months ago

ppavacic commented 9 months ago

When p4-fusion is ran with --includeBinaries true it hangs and won't download any files

Full command is:

./build/p4-fusion/p4-fusion \                                                                                     
        --path //AAA/dev/... \
        --user $P4USER \
        --port $P4PORT \
        --client $P4CLIENT \
        --src clones/AAA/.git \
        --networkThreads 20 \
        --printBatch 100 \
        --lookAhead 2000 \
        --retries 10 \
        --refresh 100 \
        --includeBinaries true

And Log is:

[ PRINT @ Main:29 ] Running p4-fusion from: .[CENSORED]
[ SUCCESS @ InitializeLibraries:142 ] Initialized P4Libraries successfully
[ PRINT @ Main:72 ] Updated client workspace view [CENSORED]with 15 mappings
[ PRINT @ Main:126 ] Perforce Port: [CENSORED]
[ PRINT @ Main:127 ] Perforce User: [CENSORED]
[ PRINT @ Main:128 ] Perforce Client: [CENSORED]
[ PRINT @ Main:129 ] Depot Path: //[CENSORED]/[CENSORED]/...
[ PRINT @ Main:130 ] Network Threads: 20
[ PRINT @ Main:131 ] Print Batch: 100
[ PRINT @ Main:132 ] Look Ahead: 2000
[ PRINT @ Main:133 ] Max Retries: 10
[ PRINT @ Main:134 ] Max Changes: -1
[ PRINT @ Main:135 ] Refresh Threshold: 100
[ PRINT @ Main:136 ] Fsync Enable: 0
[ PRINT @ Main:137 ] Include Binaries: 1
[ PRINT @ Main:138 ] Profiling: 0
[ PRINT @ Main:139 ] Profiling Flush Rate: 1000
[ SUCCESS @ InitializeRepository:70 ] Initialized Git repository at clones/[CENSORED]/.git
[ PRINT @ Main:168 ] Requesting changelists to convert from the Perforce server
[ SUCCESS @ Main:180 ] Found 228 uncloned CLs starting from CL 7076 to CL 12754
[ PRINT @ Main:182 ] Creating 20 network threads
[ SUCCESS @ Main:184 ] Created 20 threads in thread pool
[ SUCCESS @ Main:204 ] Queued first 228 CLs up until CL 12754 for downloading
[ SUCCESS @ Main:207 ] Perforce server timezone is 60 minutes
[ SUCCESS @ Main:211 ] Received userbase details from the Perforce server
[ PRINT @ Main:216 ] Last CL to start downloading is CL 12754
[ WARNING @ CreateIndex:136 ] No HEAD commit was found. Created a fresh index.
ppavacic commented 9 months ago

the problem was, there were a lot of binary files in repo.