Board.KolibriOS.org

Официальный форум KolibriOS
Текущее время: Пн ноя 19, 2018 1:59 am

Часовой пояс: UTC+03:00




Начать новую тему  Ответить на тему  [ 5 сообщений ] 
Автор Сообщение
 Заголовок сообщения: Source tree rearrange via svnmucc
СообщениеДобавлено: Вт дек 03, 2013 9:21 pm 
Не в сети
Аватара пользователя

Зарегистрирован: Вт май 08, 2007 12:44 am
Сообщения: 345
I created this topic on English board because it matters all developers. Also, I guess, discussing in English will prevent most of flood and flame.

Few days ago I've learned and played with new SVN utility -- svnmucc. It can execute large scripts on server side, without having of working copy. Because my repositories are too small and simple, I've played with Kolibri OS repository. My learning became successful, then I decided to build my tests into useful script which can rearrange your source tree without data loss. After some optimizations, work completed on two-step rearrange procedure (initially was 4 steps).

Please sure that your SVN client has svnmucc utility. If not, please update it.

Normalize.7z (64 MB)

Linked archive contains cloned Kolibri OS repository tuned to syncronize with the original one via svnsync. You can download it, unpack it and run the script which will syncronize and rearrange the tree within. Then you can add it to your SVN client as a normal repository via file:/// protocol, browse it locally and then discuss it here. This works without a SVN server, directly from the file-based URL. All GUI SVN clients can display repositories, I guess. When adding to client, URL to your local repository should look like:
Код:
file:///X:/Path/to/extracted/Kolibri

There are 3 slashes after "file:", be attentive.

The script within archive is Windows batch file, but it contains only SVN commands. Please adapt it to Linux by yourself, %~dp0 is a macro of a path to the batch file itself.

Suggested tree structure is concept, I made it by my mind. Probably, I was been preconceived somewhere. If you agree with the change in general, let's discuss about details. I can describe most of details a bit later, after first answers. Three general changes are:
  • Straighten the tree by removing redundant trunks in programs (also move seldom used tags to the common tags), then move programs, data and skins into single, common trunk.
  • Unify naming of branches, tags and languages, rename some directories to more useful terms, put libraries directly to the trunk.
  • Move all large programs and libraries not building by autobuild to contrib directory, as suggested by yogev_ezra.

After all, FASM and C-- programmers can download only trunk -- 46 MB. C/C++ sources in contrib -- 106 MB.

Don't afraid of problems with re-download a working copy after massive changes, due to your SVN client fail. We can prepare a clone of new repository and take out it compressed like this, then you can download it as a single file and update or re-download entire working copy locally, then finally switch to the normal, remote repository of Kolibri OS.

I will change svnmucc script by the results of discussion. Probably, I will change it with more than one step, being iterative. One or two months to play and discuss -- is it good period?

Спойлер: Показать
You can also create an empty repository and syncronize it by yourself, downloading revisions one-by-one. It will create about 8600 files on your disk. But archived repository was packed by svnadmin pack command, having first 3000 revisions merged into 3 large files.

_________________
Разработчик языка программирования Кантор (под KolibriOS)


Вернуться к началу
 Заголовок сообщения: Re: Source tree rearrange via svnmucc
СообщениеДобавлено: Ср дек 04, 2013 2:01 am 
Не в сети
Kernel Developer

Зарегистрирован: Вс фев 10, 2013 12:37 pm
Сообщения: 2329
Can you explained for such stupid people like me - why do it?

Of the proposed I saw only one advantage - reduce the size of the downloaded parts of the repository.
However, I prefer to have the entire repository.

_________________
Всем чмоки в этом проекте! Засуньте эти 11 лет себе в жопу!


Вернуться к началу
 Заголовок сообщения: Re: Source tree rearrange via svnmucc
СообщениеДобавлено: Чт дек 05, 2013 2:10 am 
Не в сети
Аватара пользователя

Зарегистрирован: Вт май 08, 2007 12:44 am
Сообщения: 345
Mario_r4 писал(а):
Of the proposed I saw only one advantage - reduce the size of the downloaded parts of the repository.

I see these advantages:
  • This will normalize project management view to Kolibri OS. The project is not only kernel, as well as programs and other stuff are not just somebody's personal initiative (самодеятельность). All appropriate project data can be available to tagging as single tree (within release operations).
  • Normal, pretty-looking tree will be more familar to professional developers. It will simplify learning and contributing in "weekend project" mode.
  • Pro-style tree will be best practice for hobby developers, it will also improve their SVN user experience.
  • New tree will simplify navigation between directories.

Here is svnmucc script update (commouse removed): mucc-update.7z (4 KB).

Mario_r4 писал(а):
However, I prefer to have the entire repository.

I can't prohibit it. :)

Also, as I thought since the topic start, putting 'contrib' directly to the root maybe not a good idea. Perhaps trunk may look like this:
Код:
/trunk/autobuild
/trunk/contrib
/trunk/outdated

Here 'autobuild' is previously proposed 'trunk', 'contrib' is 'contrib' and 'outdated' is '/tags/outdated'.

_________________
Разработчик языка программирования Кантор (под KolibriOS)


Вернуться к началу
 Заголовок сообщения: Re: Source tree rearrange via svnmucc
СообщениеДобавлено: Чт дек 05, 2013 11:58 pm 
Не в сети
Mentor/Kernel Developer
Аватара пользователя

Зарегистрирован: Пт июн 30, 2006 9:01 am
Сообщения: 1242
Dont forget to make a separate directory for libraries :)

_________________
"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." Albert Einstein


Вернуться к началу
 Заголовок сообщения: Re: Source tree rearrange via svnmucc
СообщениеДобавлено: Пт дек 06, 2013 9:44 am 
Не в сети
Аватара пользователя

Зарегистрирован: Вт май 08, 2007 12:44 am
Сообщения: 345
hidnplayr
Have you seen this repo?

_________________
Разработчик языка программирования Кантор (под KolibriOS)


Вернуться к началу
Показать сообщения за:  Поле сортировки  
Начать новую тему  Ответить на тему  [ 5 сообщений ] 

Часовой пояс: UTC+03:00


Кто сейчас на конференции

Сейчас этот форум просматривают: Bing [Bot] и 1 гость


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Найти:
Перейти:  
Создано на основе phpBB® Forum Software © phpBB Limited
Русская поддержка phpBB