You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewError(`'${file}' is listed in ${dotPatchesPath} more than once`)
163
+
}
164
+
returnseen.add(file)
165
+
},newSet())
166
+
if(patchFileList.length!==patchFileSet.size)thrownewError('each patch file should only be in the .patches file once')
167
+
for(constfileoffs.readdirSync(targetPatchesDir)){
168
+
// Ignore the .patches file and READMEs
169
+
if(file==='.patches'||file==='README.md')continue
170
+
171
+
if(!patchFileSet.has(file)){
172
+
thrownewError(`Expected the .patches file at "${dotPatchesPath}" to contain a patch file ("${file}") present in the directory but it did not`)
173
+
}
174
+
patchFileSet.delete(file)
175
+
}
176
+
177
+
// If anything is left in this set, it means it did not exist on disk
178
+
if(patchFileSet.size>0){
179
+
thrownewError(`Expected all the patch files listed in the .patches file at "${dotPatchesPath}" to exist but some did not:\n${JSON.stringify([...patchFileSet.values()],null,2)}`)
0 commit comments