Skip to content

Commit c13f08f

Browse files
committed
implementing setFilesContent
1 parent 702a0b0 commit c13f08f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,9 @@ public String getFileContent(String branchName, String filePath, String revision
259259
private String getBranchName(String branchName) {
260260
return branchName == null ? MASTER_PATH : BRANCHES_PATH + branchName;
261261
}
262-
262+
263263
@Override
264-
public VCSCommit setFileContent(String branchName, String filePath, String content, String commitMessage) {
264+
public void VCSCommit setFilesContent(String branchName, List<String> filePathes, List<String> contents, String commitMessage) {
265265
try (IVCSLockedWorkingCopy wc = repo.getVCSLockedWorkingCopy()) {
266266
checkout(getBranchUrl(branchName), wc.getFolder(), null);
267267
File file = new File(wc.getFolder(), filePath);
@@ -301,6 +301,11 @@ public VCSCommit setFileContent(String branchName, String filePath, String conte
301301
}
302302
}
303303

304+
@Override
305+
public VCSCommit setFileContent(String branchName, String filePath, String content, String commitMessage) {
306+
return setFilesContent(branchName, Collections.singletonList(filePath), Collections.singletonList(content), commitMessage);
307+
}
308+
304309
@Override
305310
public String getRepoUrl() {
306311
return repo.getRepoUrl();

0 commit comments

Comments
 (0)