svn助手
Project description
pysvn_util
- svn_util.py
操作svn的各种封装方法,使用示例:
# 使用示例
svn_client = SVNClient(repo_url='svn://', working_copy_path='', username='',
password='')
checkout_output, checkout_error, checkout_code = svn_client.checkout()
logging.info(f'检出日志: {checkout_output}')
logging.error(f'检出错误: {checkout_error}')
logging.info(f'检出返回码: {checkout_code}')
update_output, update_error, update_code = svn_client.update()
logging.info(f'更新日志: {update_output}')
logging.error(f'更新错误: {update_error}')
logging.info(f'更新返回码: {update_code}')
add_output, add_error, add_code = svn_client.add("/app/temp/svn/nginx/2")
logging.info(f'增加日志: {add_output}')
logging.error(f'增加错误: {add_error}')
logging.info(f'增加返回码: {add_code}')
commit_output, commit_error, commit_code = svn_client.commit('Committing changes')
logging.info(f'提交日志: {commit_output}')
logging.error(f'提交错误: {commit_error}')
logging.info(f'提交返回码: {commit_code}')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysvn_util-1.0.0.tar.gz
(3.0 kB
view details)
Built Distribution
File details
Details for the file pysvn_util-1.0.0.tar.gz
.
File metadata
- Download URL: pysvn_util-1.0.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 862a37cffa7b96aeec51935daad8cb32d3e03d0ca9ca8d6cbe3abc7be7a340ae |
|
MD5 | 29be191e173fd87e38d8788d7e2e3613 |
|
BLAKE2b-256 | a4a359d711bbb4834b12481247b22dd2f4d8fa98c0e65c279854940146d0f233 |
File details
Details for the file pysvn_util-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: pysvn_util-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 24f34e2083dcae6da5ef96412caeeae8bed1f1d9516ef36a84c9a081e9cf984c |
|
MD5 | d5f7b5bb10d9802039db95ef5fd4adc2 |
|
BLAKE2b-256 | 5039f488aaa9704b944ac72907484f20deaededca80cdf8a04afcaba668f93d1 |