oscript-library / oscript-library/gitsync

Ошибка замещения всей конфигурации по разборе очередного шага

Open
#87 3 comments 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

Столкнулся с проблемой, когда при разборе истории хранилища вместо помещения только затронутых в изменении объектов перезаписываются фактически все файлы.
Например есть изменение, создающее отчет с парой форм:

Версия:		168
Пользователь:	Пермяков Алексей
Дата создания:	11.10.2015
Время создания:	11:34:15
Пустой комментарий. (fix)
	Добавлены	4
	Отчет.РегламентированныйОтчетФормаКорпоративная49Год
	Отчет.РегламентированныйОтчетФормаКорпоративная49Год.Макет.ФормаОтчета2015_Годовая_ФормаОтчета
	Отчет.РегламентированныйОтчетФормаКорпоративная49Год.Форма.ОсновнаяФорма
	Отчет.РегламентированныйОтчетФормаКорпоративная49Год.Форма.ФормаОтчета2015Годовая
	Изменены	1
	ООСреды

В конфигураторе 1С нет ничего необычного. Но после выполнения команды:
gitsync export "\\####\repositories\OOS_GP10" "C:\Jenkins\workspace\OOS\Sync1CtoGit\OOS_2_0\src" -limit 1
получается коммит, содержащий вот такое количество изменений:

git diff --shortstat origin/develop_src develop_src 
 1970 files changed, 4138 insertions(+), 659461 deletions(-)

Откат изменения и повторный разбор дают такой же результат.

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 by reproducing gitsync export "\\####\repositories\OOS_GP10" "C:\Jenkins\workspace\OOS\Sync1CtoGit\OOS_2_0\src" -limit 1 and compare the resulting git diff --shortstat. Trace how the next storage-history step is parsed and exported; done means the commit contains only the four added objects and one changed object rather than thousands of unrelated files.

Written by the indexing model from the issue text.

Assessment

Tech stack
git
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.