cloud-resolve-conflicts-0.0.8
توضیحات
ownCloud and Seafile conflict resolver
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | cloud-resolve-conflicts-0.0.8 |
| نام | cloud-resolve-conflicts |
| نسخه کتابخانه | 0.0.8 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Roman Inflianskas |
| ایمیل نویسنده | infroma@gmail.com |
| آدرس صفحه اصلی | https://bitbucket.org/rominf/cloud-resolve-conflicts |
| آدرس اینترنتی | https://pypi.org/project/cloud-resolve-conflicts/ |
| مجوز | LGPLv3+ |
ownCloud and Seafile conflict files resolver
============================================
ownCloud often generates bunch of conflict files. Seafile is far better, but it happens. Some of conflict files are completely senseless (they are equivalent to non conflict files laying beside them), some of them really differs from their neighborhoods. The aim of this script is to resolve conflict files of both types.
Installation
------------
Dependencies
~~~~~~~~~~~~
`python3.3` or newer.
Python 3.3 specific packages: `pathlib flufl.enum`.
Additional
""""""""""
Python package: `send2trash` (for deleting files to trash).
`kdiff3` (for file comparison).
Usage
-----
Simple execution
~~~~~~~~~~~~~~~~
.. code:: bash
cloud-resolve-conflicts ~/ownCloud
This executes backup of all conflict files into `~/ownCloud/conflict_files_backup.tar`, removes all senseless conflict files (permanently) and asks your decision for real conflict files (it shows `kdiff3` window with files opened side by side). You can specify other program such as `vimdiff` or `meld` with the option `--program-name`.
Removing all conflict files with extension
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Removing all conflict `*.aux` files (with their corresponding normal files) in current directory using `ag` and `pyp` (you can use `grep` and `xargs` if you prefer):
.. code:: bash
cloud-resolve-conflicts --list-all | ag '.aux$' | pyp "'rm \"{}\"'.format(p)" | sh
(simplier examples with proper spaces escaping are welcome)
Other usages
~~~~~~~~~~~~
For more options (such as disabling backups, deleting files to trash, using different compare program, etc.) use:
.. code:: bash
cloud-resolve-conflicts --help
Contributing
------------
Send bug reports (especially with serious bugs such as data loss) and make pull requests on BitBucket_. Star this script if it helped you.
Warranty
--------
I wrote this script for myself and used it successfully. I hope this program will work for you too. I wrote some tests to be sure that it will do things correctly. But as always:
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.. _BitBucket: https://bitbucket.org/rominf/cloud-resolve-conflicts
نحوه نصب
نصب پکیج whl cloud-resolve-conflicts-0.0.8:
pip install cloud-resolve-conflicts-0.0.8.whl
نصب پکیج tar.gz cloud-resolve-conflicts-0.0.8:
pip install cloud-resolve-conflicts-0.0.8.tar.gz