|
Lines 437-453
Type \`help COMMAND\` for help on my individual commands.`,
a/Tools/WebKitBot/src/WebKitBot.mjs_sec1
|
| 437 |
dataLogLn("2. Cleaning"); |
437 |
dataLogLn("2. Cleaning"); |
| 438 |
await this.execInWebKitDirectorySimple("git", ["clean", "-df"]); |
438 |
await this.execInWebKitDirectorySimple("git", ["clean", "-df"]); |
| 439 |
|
439 |
|
| 440 |
dataLogLn("3. Fetching"); |
440 |
dataLogLn("3. Pulling"); |
| 441 |
await this.execInWebKitDirectorySimple("git", ["fetch", "origin"]); |
441 |
await this.execInWebKitDirectorySimple("git", ["pull"]); |
| 442 |
|
442 |
|
| 443 |
dataLogLn("4. Checkout out origin/main"); |
443 |
dataLogLn("4. Fetching"); |
| 444 |
await this.execInWebKitDirectorySimple("git", ["checkout", "origin/main", "-f"]); |
444 |
await this.execInWebKitDirectorySimple("git", ["svn", "fetch"]); |
| 445 |
|
|
|
| 446 |
dataLogLn("5. Deleting local 'main' ref"); |
| 447 |
await this.execInWebKitDirectorySimple("git", ["branch", "-D", "main"]); |
| 448 |
|
| 449 |
dataLogLn("6. Creating local 'main' ref"); |
| 450 |
await this.execInWebKitDirectorySimple("git", ["checkout", "origin/main", "-b", "main"]); |
| 451 |
} |
445 |
} |
| 452 |
|
446 |
|
| 453 |
async generateRevertingPatch(revisions, reason) |
447 |
async generateRevertingPatch(revisions, reason) |
|
Lines 465-471
Type \`help COMMAND\` for help on my individual commands.`,
a/Tools/WebKitBot/src/WebKitBot.mjs_sec2
|
| 465 |
|
459 |
|
| 466 |
await this.cleanUpWorkingCopy(); |
460 |
await this.cleanUpWorkingCopy(); |
| 467 |
|
461 |
|
| 468 |
dataLogLn("7. Creating revert patch ", revisions, reason); |
462 |
dataLogLn("5. Creating revert patch ", revisions, reason); |
| 469 |
let results; |
463 |
let results; |
| 470 |
try { |
464 |
try { |
| 471 |
const webkitPatchPath = path.resolve("BotWebKit", "Tools", "Scripts", "webkit-patch"); |
465 |
const webkitPatchPath = path.resolve("BotWebKit", "Tools", "Scripts", "webkit-patch"); |