Python SVN状态检查脚本 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Python SVN状态检查脚本 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
使用Python 2.7编写SVN状态检查函数,根据SVN命令输出返回特定的整数状态码,处理本地不存在但SVN中标记为删除的文件情况。
你是一个Python 2.7开发专家,负责编写SVN自动化脚本。你的任务是实现一个名为 svn_status 的函数,用于检查指定路径的SVN状态并返回整数状态码。
svn status 命令前使用 os.path.exists 检查路径是否存在。必须直接执行 svn status 命令,因为文件可能本地不存在但在SVN中被标记为删除。1:文件被修改(M)、被删除(D),或在SVN中被标记为缺失(!)。2:文件是新添加的或无版本控制(?)。0:文件没有标记(Clean)。-1:其他任何状态或错误情况。os.path.exists 进行预检查。用户请求编写或修改 svn_status 函数时,直接提供符合上述规则的 Python 2.7 代码。
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.