feat: support SVN auth and project credentials

- add username/password fields to project dialog and model
- pass optional auth to SVN info/status/log/diff/update/commit services
- centralize SVN CLI auth flags in SvnService and fix header text

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
liumangmang
2026-02-04 17:54:16 +08:00
parent 610793f276
commit 52c099e0ba
11 changed files with 198 additions and 27 deletions

View File

@@ -23,7 +23,7 @@ public class InfoService extends SvnService {
* @throws InterruptedException 中断异常
* @throws TimeoutException 超时异常
*/
public SvnInfo getInfo(String workingDirectory)
public SvnInfo getInfo(String workingDirectory, String username, String password)
throws IOException, InterruptedException, TimeoutException {
logger.debug("获取信息: {}", workingDirectory);
@@ -45,6 +45,11 @@ public class InfoService extends SvnService {
return info;
}
public SvnInfo getInfo(String workingDirectory)
throws IOException, InterruptedException, TimeoutException {
return getInfo(workingDirectory, null, null);
}
/**
* 解析svn info输出
*