feat: thread SVN auth (username/password) through all svn call sites
This commit is contained in:
@@ -146,6 +146,7 @@ def assess(mirror: Mirror, ref: str = "refs/heads/master") -> Dict[str, Any]:
|
||||
|
||||
Only analyses *ref* (default: refs/heads/master → SVN trunk).
|
||||
"""
|
||||
auth_args = mirror.config.svn.auth_args()
|
||||
git_dir = str(mirror.canonical_dir)
|
||||
db = mirror.db
|
||||
svn_url = mirror.config.svn.url
|
||||
@@ -168,13 +169,14 @@ def assess(mirror: Mirror, ref: str = "refs/heads/master") -> Dict[str, Any]:
|
||||
# ── 2. SVN side ───────────────────────────────────────
|
||||
last_svn_rev_str = db.get_state("last_svn_revision")
|
||||
last_svn_rev = int(last_svn_rev_str) if last_svn_rev_str else 0
|
||||
latest_svn_rev = svn_get_latest_revision(svn_url)
|
||||
latest_svn_rev = svn_get_latest_revision(svn_url, auth_args=auth_args)
|
||||
|
||||
pending_svn: List[Dict[str, Any]] = []
|
||||
svn_changed_files: Dict[str, List[int]] = {}
|
||||
if last_svn_rev < latest_svn_rev:
|
||||
try:
|
||||
entries = svn_get_log_range(svn_url, last_svn_rev + 1, latest_svn_rev)
|
||||
entries = svn_get_log_range(svn_url, last_svn_rev + 1, latest_svn_rev,
|
||||
auth_args=auth_args)
|
||||
except Exception:
|
||||
entries = []
|
||||
for entry in entries:
|
||||
|
||||
Reference in New Issue
Block a user