Pl/FGAddon: Difference between revisions

Jump to navigation Jump to search
Line 339: Line 339:
Ważne jest, aby zrozumieć, że istnieje wiele operacji, w których git-svn jest niewystarczający. W wielu przypadkach należy użyć narzędzi svn.
Ważne jest, aby zrozumieć, że istnieje wiele operacji, w których git-svn jest niewystarczający. W wielu przypadkach należy użyć narzędzi svn.


==== Copying files between aircraft ====
==== Kopiowanie plików między statkami powietrznymi ====


{{caution|Git-svn does not maintain the file copying history normally present in a Subversion repository.}}
{{caution|Git-svn nie zachowuje historii kopiowania plików normalnie obecnej w repozytorium Subversion.}}


The most important of these is the copying of content from other FGAddon aircraft. In this case you will need FGAddon commit access and a local svn copy of the repository. Firstly synchronise the repositories by dcommitting all changes back to FGAddon:
Najważniejszym z nich jest kopiowanie zawartości z innych statków powietrznych FGAddon. W tym przypadku potrzebny będzie dostęp do zatwierdzania FGAddon i lokalna kopia svn repozytorium. Najpierw zsynchronizuj repozytoria, zatwierdzając wszystkie zmiany z powrotem do FGAddon:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
git svn dcommit
git svn dcommit
</syntaxhighlight>
</syntaxhighlight>


Then in the local svn repository, copy the file:
Następnie w lokalnym repozytorium svn skopiuj plik:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
svn cp Aircraft/<aircraft1>/<file_path1> Aircraft/<aircraft2>/<file_path2>
svn cp Aircraft/<aircraft1>/<file_path1> Aircraft/<aircraft2>/<file_path2>
</syntaxhighlight>
</syntaxhighlight>


And commit the change:
I zatwierdzić zmianę:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
svn ci
svn ci
</syntaxhighlight>
</syntaxhighlight>


Back in the local git-svn repository, pull in the new files:
Wróć do lokalnego repozytorium git-svn i pobierz nowe pliki:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
git svn rebase
git svn rebase
</syntaxhighlight>
</syntaxhighlight>


Using the subversion tools avoids the FGAddon repository backend from significantly increasing in size, as [http://svnbook.red-bean.com/en/1.7/svn.branchmerge.using.html#svn.branchmerge.using.create svn copies are cheap].
Korzystanie z narzędzi Subversion pozwala uniknąć znacznego wzrostu rozmiaru zaplecza repozytorium FGAddon, ponieważ [http://svnbook.red-bean.com/en/1.7/svn.branchmerge.using.html#svn.branchmerge.using.create kopie SVN są tanie].


==== Przenoszenie lub zmiana nazwy plików ====
==== Przenoszenie lub zmiana nazwy plików ====
1,361

edits

Navigation menu