mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-03-05 20:00:55 +01:00
Fix diff for hg
This commit is contained in:
@@ -72,19 +72,19 @@ public class HgDiffCommand extends AbstractCommand implements DiffCommand
|
||||
@Override
|
||||
public DiffCommandBuilder.OutputStreamConsumer getDiffResult(DiffCommandRequest request)
|
||||
{
|
||||
com.aragost.javahg.Repository hgRepo = open();
|
||||
|
||||
HgDiffInternalCommand cmd = HgDiffInternalCommand.on(hgRepo);
|
||||
DiffFormat format = request.getFormat();
|
||||
|
||||
if (format == DiffFormat.GIT)
|
||||
{
|
||||
cmd.git();
|
||||
}
|
||||
|
||||
cmd.change(HgUtil.getRevision(request.getRevision()));
|
||||
|
||||
return output -> {
|
||||
com.aragost.javahg.Repository hgRepo = open();
|
||||
|
||||
HgDiffInternalCommand cmd = HgDiffInternalCommand.on(hgRepo);
|
||||
DiffFormat format = request.getFormat();
|
||||
|
||||
if (format == DiffFormat.GIT)
|
||||
{
|
||||
cmd.git();
|
||||
}
|
||||
|
||||
cmd.change(HgUtil.getRevision(request.getRevision()));
|
||||
|
||||
InputStream inputStream = null;
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user