~jan0sch/smederee
Showing details for patch 09fa34d4392279cbda1cfe26ebfae82375e208f8.
diff -rN -u old-smederee/modules/darcs/src/main/scala/de/smederee/darcs/DarcsCommands.scala new-smederee/modules/darcs/src/main/scala/de/smederee/darcs/DarcsCommands.scala --- old-smederee/modules/darcs/src/main/scala/de/smederee/darcs/DarcsCommands.scala 2025-06-20 20:33:09.136774334 +0000 +++ new-smederee/modules/darcs/src/main/scala/de/smederee/darcs/DarcsCommands.scala 2025-06-20 20:33:09.136774334 +0000 @@ -258,9 +258,16 @@ val directory = Paths.get(basePath.toString, repositoryName) val darcsOptions = List("repair") ::: options.toList val externalCommand = os.proc(darcsBinary.toString, darcsOptions) + // TODO: Using `mergeErrIntoOut` is a workaround for stderr being empty in the error case! for { - process <- Sync[F].delay(externalCommand.call(cwd = os.Path(directory), check = false)) - } yield DarcsCommandOutput(process.exitCode, Chain(process.out.text()), Chain(process.err.text())) + process <- Sync[F].delay( + externalCommand.call(cwd = os.Path(directory), check = false, mergeErrIntoOut = true) + ) + } yield DarcsCommandOutput( + process.exitCode, + Chain.fromSeq(process.out.lines()), + Chain.fromSeq(process.err.lines()) + ) } /** Run the darcs show dependencies command on the given repository and return the output.