Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
subversion [2008/06/16 21:03] zeman Corrected messed up formatting caused by migration from MediaWiki. |
subversion [2008/12/02 18:54] bojar caste problemy s tracem |
||
---|---|---|---|
Line 32: | Line 32: | ||
O přidávání uživatelů a hesel viz níže. | O přidávání uživatelů a hesel viz níže. | ||
- | ==== Konfigurace protokolu SVN ==== | + | |
+ | ==== Konfigurace protokolu SVN (raději nepoužívat, | ||
Toto rozhraní je užíváno SVN klienty, kteří dostanou repository udanou ve tvaru '' | Toto rozhraní je užíváno SVN klienty, kteří dostanou repository udanou ve tvaru '' | ||
Line 46: | Line 47: | ||
Pozor - hesla se tu nastavuji jako textove retezce, neni to htaccess! Po siti tedy tecou nekryptovane! | Pozor - hesla se tu nastavuji jako textove retezce, neni to htaccess! Po siti tedy tecou nekryptovane! | ||
+ | |||
==== Konfigurace přístupu k systému Trac ==== | ==== Konfigurace přístupu k systému Trac ==== | ||
Line 57: | Line 59: | ||
trac-admin / | trac-admin / | ||
+ | === Časté problémy === | ||
+ | |||
+ | == V tracu chybí tlačítko Browse Source == | ||
+ | |||
+ | Ověřte, že v souboru ''/ | ||
+ | |||
+ | == V prohlížení kódu se neukazuje Unicode == | ||
+ | |||
+ | Ověřte, že v souboru ''/ | ||
==== Přidávání vlastních uživatelů pro webové přístupy (SVN i Trac) ==== | ==== Přidávání vlastních uživatelů pro webové přístupy (SVN i Trac) ==== | ||
Line 66: | Line 77: | ||
htpasswd -s / | htpasswd -s / | ||
# na heslo budete dotázáni, heslo se nezobrazí ani na terminálu | # na heslo budete dotázáni, heslo se nezobrazí ani na terminálu | ||
+ | |||
===== Lokální Subversion ===== | ===== Lokální Subversion ===== | ||
Line 98: | Line 110: | ||
rm -rf proj.old | rm -rf proj.old | ||
</ | </ | ||
+ | |||
+ | Výše uvedený postup je možné po úpravách použít i pro vzdálený repozitář na serveru SVN. Předpokládáme, | ||
+ | |||
+ | < | ||
+ | mv $PROJ $PROJ.old | ||
+ | mkdir tmp | ||
+ | cd tmp | ||
+ | mkdir $PROJ | ||
+ | cp -r / | ||
+ | mkdir $PROJ/ | ||
+ | mkdir $PROJ/tags | ||
+ | svn --username $USER import $PROJ https:/// | ||
+ | cd .. | ||
+ | svn checkout -q https:/// | ||
+ | rm -rf tmp | ||
+ | rm -rf $PROJ.old</ | ||
+ | |||
+ | Pokud jste si jisti, že pro tento projekt nebudete nikdy potřebovat větve ani otagované verze, můžete pravděpodobně vynechat vytváření podsložek '' | ||
===== Přechod z CVS pod SVN ===== | ===== Přechod z CVS pod SVN ===== | ||
Line 373: | Line 403: | ||
~/ | ~/ | ||
</ | </ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
===== Rolling Back Versions ===== | ===== Rolling Back Versions ===== | ||
Line 378: | Line 413: | ||
What do you do if something is broken that wasn't broken before? | What do you do if something is broken that wasn't broken before? | ||
- | '' | + | '' |
This will show you the change log. Hopefully, this will be sufficiently informative as to when particular changes occurred, but if you aren't sure what happened in a particular revision, you can always run | This will show you the change log. Hopefully, this will be sufficiently informative as to when particular changes occurred, but if you aren't sure what happened in a particular revision, you can always run | ||
- | '' | + | '' |
To see the changes that have been made. Once you figure out which version you need, you can restore your working copy to that revision using | To see the changes that have been made. Once you figure out which version you need, you can restore your working copy to that revision using | ||
- | '' | + | '' |
+ | |||
+ | Warning: If you update the whole project ('' | ||
+ | |||
+ | The following chapters from the SVN book have some answers: | ||
+ | * http:// | ||
+ | * http:// | ||
+ | * http:// | ||
+ | |||
+ | The following code should undo the changes between the revisions 302 and 303 (note the minus sign before 303, meaning negative change) while keeping the other changes between 303 and HEAD. | ||
+ | |||
+ | < | ||
+ | # alternatively: | ||
+ | svn status | ||
+ | svn diff | ||
+ | svn commit -m " | ||
===== Setting Up an Archive ===== | ===== Setting Up an Archive ===== | ||
Line 412: | Line 462: | ||
See [[VersionControlSetup|VersionControlSetup]] for the series of commands used to set up the MTEval archive. | See [[VersionControlSetup|VersionControlSetup]] for the series of commands used to set up the MTEval archive. | ||
+ | |||
===== Stupid Repository Tricks ===== | ===== Stupid Repository Tricks ===== | ||
Line 420: | Line 471: | ||
* View the logs of all changes to your current branch since you last updated: '' | * View the logs of all changes to your current branch since you last updated: '' | ||
* View all the differences between your working copy and the latest revision of your current branch: '' | * View all the differences between your working copy and the latest revision of your current branch: '' | ||
- | * Merge into your current working copy the bug fixes checked in to r475 of the bittorrent branch (even if that's not your working branch): '' | + | * Merge into your current working copy the bug fixes checked in to r475 of the bittorrent branch (even if that's not your working branch): '' |
- | * Change your mind when you realize those bug fixes did more harm than good: '' | + | * Change your mind when you realize those bug fixes did more harm than good: '' |
===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
Line 439: | Line 490: | ||
* '' | * '' | ||
* pray | * pray | ||
+ | |||
+ | |||
===== Further Reading ===== | ===== Further Reading ===== | ||
- | All of the information in this tutorial comes directly from the online [http:// | + | All of the information in this tutorial comes directly from the online |
- | * [http:// | + | |
- | * [http:// | + | * [[http:// |
- | * [http:// | + | * [[http:// |
- | * [http:// | + | * [[http:// |
- | * [http:// | + | * [[http:// |
Most likely, this is all you will need to look at to do most of your work. Most of this material comes from Section 3.5. | Most likely, this is all you will need to look at to do most of your work. Most of this material comes from Section 3.5. | ||