oscript-library / oscript-library/gitsync

Реализация выгрузки последних N версий

Open
#333 1 comment 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.