Pl/FGAddon: Difference between revisions

Jump to navigation Jump to search
Line 996: Line 996:
Najprostszym sposobem na pracę zespołową jest posiadanie przez każdego dewelopera [[#Indywidualny deweloper|kopi svn FGAddon]] lub [[#Indywidualny deweloper (git-svn)|kopi git-svn FGAddon]], a każdy zatwierdza bezpośrednio do FGAddon.  Komunikacja i koordynacja między członkami zespołu może odbywać się za pomocą [[#Komunikacja w zespole|forum SourceForge]] zorganizowanego przez lidera lub za pomocą [http://forum.flightgear.org/ FlightGear forum].  W tym scenariuszu zespół musi przejąć inicjatywę i wszyscy ubiegają się o dostęp do zatwierdzeń FGAddon.
Najprostszym sposobem na pracę zespołową jest posiadanie przez każdego dewelopera [[#Indywidualny deweloper|kopi svn FGAddon]] lub [[#Indywidualny deweloper (git-svn)|kopi git-svn FGAddon]], a każdy zatwierdza bezpośrednio do FGAddon.  Komunikacja i koordynacja między członkami zespołu może odbywać się za pomocą [[#Komunikacja w zespole|forum SourceForge]] zorganizowanego przez lidera lub za pomocą [http://forum.flightgear.org/ FlightGear forum].  W tym scenariuszu zespół musi przejąć inicjatywę i wszyscy ubiegają się o dostęp do zatwierdzeń FGAddon.


=== Private team development (git-svn) ===
=== Prywatny zespół deweloperów (git-svn) ===


{{Note|Development scenarioOne team leader is acting as the gatekeeper on a private git repository hosted on the in-house SourceForge infrastructure, using git-svn to push a fgaddon branch to FGAddon, with team members committing directly to the private git repository or making merge requests from their fork of the private repository.}}
{{Note|ScenariuszJeden z liderów zespołu działa jako opiekun prywatnego repozytorium git hostowanego w wewnętrznej infrastrukturze SourceForge, używając git-svn do wypchnięcia gałęzi fgaddon do FGAddon, a członkowie zespołu zatwierdzają bezpośrednio do prywatnego repozytorium git lub wysyłają żądania scalenia ze swojego rozwidlenia prywatnego repozytorium.}}


To keep everything in-house, the entire operation will be based on the official infrastructure and remote repositories under each user's SourceForge (SF) profile. Note to the team leader - you must [https://git-scm.com/book/en/v1/Git-and-Other-Systems-Git-and-Subversion#git-svn keep your git-svn history linear] (meaning that a [[#Dedicated_FGAddon_branch|dedicated FGAddon branch]] should be created and changes manually cherry-picked into this branch). In the following, the <code>ornithopter</code> aircraft will be used as an example.
Aby zachować wszystko we własnym zakresie, cała operacja będzie oparta na oficjalnej infrastrukturze i zdalnych repozytoriach w ramach profilu każdego użytkownika SourceForge (SF). Uwaga dla lidera zespołu — musisz [https://git-scm.com/book/en/v1/Git-and-Other-Systems-Git-and-Subversion#git-svn utrzymywać liniową historię git-svn] (co oznacza, że należy utworzyć [[#Dedykowana gałąź FGAddon|dedykowaną gałąź FGAddon]] i ręcznie wybrać (cherry-pick) zmiany w tej gałęzi). W dalszej części jako przykład zostanie użyty statek powietrzny <code>ornithopter</code>.


==== The team ====
==== Zespół ====


Firstly, the entire team should sign up for [[#SourceForge account|SourceForge accounts]].
Po pierwsze, cały zespół powinien zalogować się na swoje [[#Konto na SourceForge|konto SourceForge]].


==== Team leader ====
==== Lider zespołu ====


===== Private repository set up =====
===== Konfiguracja prywatnego repozytorium =====
 
Te kroki musi podjąć lider zespołu. W swoim profilu użytkownika SourceForge skonfiguruj [[#Repozytorium git dla deweloperów|repozytorium git]] z etykietą <code>Ornithopter FGAddon repozytorium git-svn</code> i ścieżką kodu <code>code-ornithopter</code>. Następnie utwórz puste, lokalne repozytorium git:


These steps are to be taken by the team leader.  In your SourceForge user profile, set up a [[#Developer_git_repository| git repository]] with the label <code>Ornithopter FGAddon git-svn repository</code> and code path <code>code-ornithopter</code>.  Then create a empty local git repository:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
$ mkdir ornithopter
$ mkdir ornithopter
Line 1,017: Line 1,018:
</syntaxhighlight>
</syntaxhighlight>


Link the empty repository to the <code>ornithopter</code> aircraft directory in the remote FGAddon repository and pull it in with:
Połącz puste repozytorium z katalogiem <code>ornithopter</code> statku powietrznego w zdalnym repozytorium FGAddon i pobierz je za pomocą:
{{#tag:syntaxhighlight|
{{#tag:syntaxhighlight|
$ {{fgaddon source|cmd=git svn init|protocol=svn+ssh|login=<username>|type=svn|path=Aircraft/ornithopter|full=1}}
$ {{fgaddon source|cmd=git svn init|protocol=svn+ssh|login=<username>|type=svn|path=Aircraft/ornithopter|full=1}}
Line 1,024: Line 1,025:
}}
}}


Replace <code><username></code> with your SF user nameSet up a special git-svn branch for FGAddon gatekeeping and dcommitting changes back to the repository:
Zastąp <code><username></code> swoją nazwą użytkownika SF.  Skonfiguruj specjalną gałąź git-svn dla opiekuna FGAddon i dcommituj zmiany z powrotem do repozytorium:
 
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
$ git branch fgaddon remotes/git-svn
$ git branch fgaddon remotes/git-svn
Line 1,030: Line 1,032:
</syntaxhighlight>
</syntaxhighlight>


And pull in the <code>ornithopter</code> from FGAddon:
Następnie pobierz <code>ornithopter</code> z FGAddon:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
$ git svn rebase
$ git svn rebase
</syntaxhighlight>
</syntaxhighlight>


To see the current local git-svn repository setup, type:
Aby zobaczyć bieżącą konfigurację lokalnego repozytorium git-svn, wpisz:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
$ git branch -vva
$ git branch -vva
Line 1,042: Line 1,044:
</syntaxhighlight>
</syntaxhighlight>


Then return to the master branch:
Następnie powróć do gałęzi głównej:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
$ git checkout master
$ git checkout master
</syntaxhighlight>
</syntaxhighlight>


Finally, set up the remote git repository as a remote:
Na koniec skonfiguruj zdalne repozytorium git jako zdalne:
{{#tag:syntaxhighlight|
{{#tag:syntaxhighlight|
$ {{sourceforge url|cmd=git remote add|opt=origin|protocol=ssh|login=<username>|user=<username>|type=git|repo=code-ornithopter}}
$ {{sourceforge url|cmd=git remote add|opt=origin|protocol=ssh|login=<username>|user=<username>|type=git|repo=code-ornithopter}}
Line 1,053: Line 1,055:
}}
}}


And send the master branch to the remote git repository:
I wyślij gałąź master do zdalnego repozytorium git:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
$ git push -u origin master
$ git push -u origin master
</syntaxhighlight>
</syntaxhighlight>


To see the new set up:
Aby zobaczyć nową konfigurację, wpisz:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
$ git branch -vva
$ git branch -vva
Line 1,064: Line 1,066:
</syntaxhighlight>
</syntaxhighlight>


The repository will be located at {{#tag:span|{{#tag:tt|{{#tag:nowiki|{{sourceforge url|user=<username>|repo=code-ornithopter|branch=master}}}}}}| style="color: blue"}}. Note that the git-svn information stored in the <code>.git/svn</code> directory will not be pushed to remote SoureForge repository, and therefore the link back to FGAddon will only be present in the local copy of the team leader. The git-svn link can be re-established at a later point if necessary.
Repozytorium będzie znajdować się pod adresem {{#tag:span|{{#tag:tt|{{#tag:nowiki|{{sourceforge url|user=<username>|repo=code-ornithopter|branch=master}}}}}}| style="color: blue"}}. Należy pamiętać, że informacje git-svn przechowywane w katalogu <code>.git/svn</code> nie zostaną przesłane do zdalnego repozytorium SoureForge, dlatego link powrotny do FGAddon będzie obecny tylko w lokalnej kopii lidera zespołu . W razie potrzeby łącze git-svn można ponownie ustanowić później.


===== Team setup =====
===== Team setup =====
1,361

edits

Navigation menu