More debugging lines

This commit is contained in:
Jack Jackson 2025-03-01 23:20:20 -08:00
parent a6ace8f4c6
commit 05aa726283
7 changed files with 4 additions and 0 deletions

2
dist/index.js vendored
View File

@ -25854,6 +25854,7 @@ async function main(sourceRepo, targetRepo, dryRun, tokenForTargetRepo) {
return;
}
function buildSourceCommitHistory(path, numCommits) {
console.log(`DEBUG - building source commit history for ${path} with max count ${numCommits}`);
const output = [];
const logOutput = (0, child_process_1.execSync)(
// If you want to copy this formatting for debugging, it's:
@ -25868,6 +25869,7 @@ function buildSourceCommitHistory(path, numCommits) {
return output;
}
function buildTargetCommitHistory(path, oldestDateInSourceCommitHistory) {
console.log(`DEBUG - building target commit history for ${path} with oldest date ${oldestDateInSourceCommitHistory.toISOString()}`);
const output = [];
try {
const countingLogOutput = (0, child_process_1.execSync)(`git log --since=${oldestDateInSourceCommitHistory.toISOString()} --pretty=oneline`, { cwd: path });

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -129,6 +129,7 @@ export async function main(sourceRepo: Repo, targetRepo: Repo, dryRun: boolean,
}
export function buildSourceCommitHistory(path: string, numCommits: number): Commit[] {
console.log(`DEBUG - building source commit history for ${path} with max count ${numCommits}`);
const output: Commit[] = [];
const logOutput = execSync(
@ -148,6 +149,7 @@ export function buildSourceCommitHistory(path: string, numCommits: number): Comm
}
export function buildTargetCommitHistory(path: string, oldestDateInSourceCommitHistory: Date): Commit[] {
console.log(`DEBUG - building target commit history for ${path} with oldest date ${oldestDateInSourceCommitHistory.toISOString()}`);
const output: Commit[] = [];
try {