Skip to content

Commit f18a120

Browse files
committed
removeFile() return type changed to VCSCommit
1 parent b9675b9 commit f18a120

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/scm4j/vcs/svn/SVNVCS.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -506,13 +506,13 @@ public String getVCSTypeString() {
506506
}
507507

508508
@Override
509-
public String removeFile(String branchName, String filePath, String commitMessage) {
509+
public VCSCommit removeFile(String branchName, String filePath, String commitMessage) {
510510
try {
511511
try (IVCSLockedWorkingCopy wc = repo.getVCSLockedWorkingCopy()) {
512512
SVNCommitInfo res = clientManager
513513
.getCommitClient()
514514
.doDelete(new SVNURL[] {getBranchUrl(branchName).appendPath(filePath, true)}, commitMessage);
515-
return Long.toString(res.getNewRevision());
515+
return new VCSCommit(Long.toString(res.getNewRevision()), commitMessage, res.getAuthor());
516516
}
517517
} catch (SVNException e) {
518518
throw new EVCSException(e);

0 commit comments

Comments
 (0)