merge3-0.0.9
توضیحات
Python implementation of 3-way merge
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX |
| نام فایل | merge3-0.0.9 |
| نام | merge3 |
| نسخه کتابخانه | 0.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | ['Breezy Developers <team@breezy-vcs.org>'] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/merge3/ |
| مجوز | - |
A Python implementation of 3-way merge of texts.
Given BASE, OTHER, THIS, tries to produce a combined text
incorporating the changes from both BASE->OTHER and BASE->THIS.
All three will typically be sequences of lines.
Usage
=====
From the command-line::
$ echo foo > mine
$ echo bar > base
$ echo blah > other
$ python -m merge3 mine base other > merged
$ cat merged
Or from Python::
>>> import merge3
>>> m3 = merge3.Merge3(
... ['common\n', 'base\n'],
... ['common\n', 'a\n'],
... ['common\n', 'b\n'])
>>> list(m3.merge_annotated())
['u | common\n', '<<<<\n', 'A | a\n', '----\n', 'B | b\n', '>>>>\n']
نیازمندی
| مقدار | نام |
|---|---|
| xtr | ruff==0.14.0; |
| xtr | mypy>=1.0.0; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9 | Python |
نحوه نصب
نصب پکیج whl merge3-0.0.9:
pip install merge3-0.0.9.whl
نصب پکیج tar.gz merge3-0.0.9:
pip install merge3-0.0.9.tar.gz