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.2.tar.gz
(2.9 kB
view details)
Built Distribution
File details
Details for the file pysvn_util-1.0.2.tar.gz
.
File metadata
- Download URL: pysvn_util-1.0.2.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4e9635138a93692b26f8a5bd42b6649cc15cceb50a4111e68306fc11ffb0579 |
|
MD5 | 5bf294ce3bb9b3286a5e7d74c6f7f46e |
|
BLAKE2b-256 | 28a445f1c88d46d683f22a7147ec8314de3568a7734a0fe9546a978bd79804dd |
File details
Details for the file pysvn_util-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: pysvn_util-1.0.2-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 | 156c3ca2959aee7d81b9083abfc4b44f4650f10d2554c93862460c6b91c2db52 |
|
MD5 | 766eebcaff076ef8fd59a5a2dfcbf55c |
|
BLAKE2b-256 | b75b4f20caa718a33d7afe2ce11a71e8062b73ff13423e667f5e7209177b2d91 |