oscript-library / oscript-library/gitsync
Реализация выгрузки последних N версий
Nobody has claimed this yet.
- Dominant language
- 1C Enterprise
- Stars
- 333
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
Не могу догнать разработчиков. Одна версия выгружается 2-3 часа. То есть в сутки в среднем 10.
Разработчики коммитят по 15.
ИНФОРМАЦИЯ - Начало выполнение команды
ИНФОРМАЦИЯ - Установлен лимит <5> для количества версий, при выгрузке
ИНФОРМАЦИЯ - Начата синхронизация с git
ИНФОРМАЦИЯ - Номер синхронизированной версии: 1721
ИНФОРМАЦИЯ - Номер последней версии в хранилище: 1750
Предлагаю использовать отрицательный параметр -l
gitsync s -l -5
И выгружать к примеру с 1746-1750
Если l<0
ВерсияВыгрузки=ПоследняяВерсияХранилища+l
Если ВерсияВыгрузки < ПоследнейВыгрузки
Тогда ВерсияВыгрузки=ПоследнейВыгрузки+1
Иначе ВерсияВыгрузки=ВерсияВыгрузки+1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the command entry point for gitsync s -l -5 and trace the current version-limit and synchronization loop. Use the range calculation described in the issue, then verify from the synchronization logs that only the requested last N versions are exported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- git
- Domain
- cli, release
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100