Minified package
This commit is contained in:
16
app.ts
16
app.ts
@@ -187,8 +187,8 @@ const rebaseBranch = async ({
|
||||
"rebase",
|
||||
onBranch
|
||||
]).catch(async error => {
|
||||
writeConsole(`Failed to rebase ${ branch } on ${ onBranch }`, LogLevel.ERROR);
|
||||
writeConsole(error, LogLevel.ERROR)
|
||||
writeConsole(`Failed to rebase ${ branch } on ${ onBranch }`, LogLevel.WARNING);
|
||||
writeConsole(error, LogLevel.WARNING)
|
||||
await runGitCommand([
|
||||
"rebase",
|
||||
"--abort"
|
||||
@@ -236,14 +236,18 @@ const main = async (): Promise<void> => {
|
||||
writeConsole(branches);
|
||||
|
||||
// Step 2: Detect dependencies
|
||||
writeConsole("Determining dependencies...");
|
||||
const dependencies = await buildRebaseDependencyGraph(branches);
|
||||
writeConsole("Dependencies");
|
||||
writeConsole(dependencies);
|
||||
writeConsole(dependencies, LogLevel.DEBUG);
|
||||
|
||||
// Step 3: Determine rebase order
|
||||
const order = rebaseOrder(dependencies);
|
||||
writeConsole("Rebase order");
|
||||
writeConsole(order);
|
||||
if (order.length === 0) {
|
||||
writeConsole("Nothing to rebase");
|
||||
} else {
|
||||
writeConsole("Rebase order");
|
||||
writeConsole(order);
|
||||
}
|
||||
|
||||
// Step 4: Rebase branches
|
||||
for (const rebaseAction of order) {
|
||||
|
||||
Reference in New Issue
Block a user