Merge with 2.0.0-m3

This commit is contained in:
René Pfeuffer
2018-08-30 11:48:58 +02:00
26 changed files with 789 additions and 49 deletions

View File

@@ -66,9 +66,7 @@ public class HgBrowseCommand extends AbstractCommand implements BrowseCommand
//~--- get methods ----------------------------------------------------------
@Override
public BrowserResult getBrowserResult(BrowseCommandRequest request)
throws IOException
{
public BrowserResult getBrowserResult(BrowseCommandRequest request) throws IOException {
HgFileviewCommand cmd = HgFileviewCommand.on(open());
if (!Strings.isNullOrEmpty(request.getRevision()))
@@ -100,6 +98,12 @@ public class HgBrowseCommand extends AbstractCommand implements BrowseCommand
result.setFiles(cmd.execute());
if (!Strings.isNullOrEmpty(request.getRevision())) {
result.setRevision(request.getRevision());
} else {
result.setRevision("tip");
}
return result;
}
}