mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 15:35:49 +01:00
Merge with 2.0.0-m3
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user