Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/Python SVN状态检查脚本
使用Python 2.7编写SVN状态检查函数,根据SVN命令输出返回特定的整数状态码,处理本地不存在但SVN中标记为删除的文件情况。
Passed 22 of 22 test cases with the skill, and 10 of 22 without it.
and 16 more in the full report
12 fixed10 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 12 test cases the skill fixed. Same model, same prompt, with and without the skill.
如果一个文件已经纳入 SVN 版本控制并且本地未做任何修改(命令行 `svn status` 返回为空),`svn_status` 函数对应的返回值应该是多少?
| Checked | Without skill | With skill |
|---|---|---|
| Returns integer code 0 for clean paths with empty command output. | Missed | Passed |
The instructions your model reads when the skill loads.
使用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 代码。
test cases passed, vs 10 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.