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:
@@ -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输出
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user