Revert "Files REST endpoint: Don't parse non-existing files"

This reverts commit 0520e08cb6. It broke
display of diffs for deleted files.

Also add a test to prevent it breaking again.

Bug: Issue 4450
Change-Id: Ib7546ed88c9cf7a5a0e16fc1eeff5a224feb4f25
This commit is contained in:
Jonathan Nieder
2016-08-23 17:58:16 +00:00
parent 2493108271
commit 86dd1bc251
4 changed files with 17 additions and 36 deletions

View File

@@ -47,7 +47,7 @@ public interface RevisionApi {
Map<String, FileInfo> files() throws RestApiException;
Map<String, FileInfo> files(String base) throws RestApiException;
Map<String, FileInfo> files(int parentNum) throws RestApiException;
FileApi file(String path) throws RestApiException;
FileApi file(String path);
MergeableInfo mergeable() throws RestApiException;
MergeableInfo mergeableOtherBranches() throws RestApiException;