Collapse folders with only one child folder (#1951)

Collapses a folder in code view which only has another folder as its only child. This lets you access a sub-folder which has content directly instead of navigating down the folder tree by clicking every folder separately.

Co-authored-by: René Pfeuffer <rene.pfeuffer@cloudogu.com>
This commit is contained in:
Matthias Thieroff
2022-02-15 10:59:32 +01:00
committed by GitHub
parent 8d9c18c23c
commit 44f0046f25
13 changed files with 572 additions and 127 deletions

View File

@@ -167,7 +167,11 @@ public class HgFileviewCommand extends AbstractCommand
HgInputStream stream = launchStream();
return new HgFileviewCommandResultReader(stream, disableLastCommit).parseResult();
try {
return new HgFileviewCommandResultReader(stream, disableLastCommit).parseResult();
} finally {
stream.close();
}
}
/**