Rozdíly

Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.

Odkaz na výstup diff

Obě strany předchozí revize Předchozí verze
Následující verze
Předchozí verze
Následující verze Obě strany příští revize
programovani:svn [04.07.2011 09:18]
wladik
programovani:svn [06.07.2011 21:25]
wladik
Řádek 1: Řádek 1:
 ====== Používání SVN ====== ====== Používání SVN ======
 +
 +===== Externals =====
 +vejit do slozky, kde chci pridat externals
 +
 +tam spustit prikaz
 +  svn propset svn:​externals '​akismet http://​plugins.svn.wordpress.org/​akismet/​trunk'​ .
 +kde akismet je slozka, do ktere se udela checkuout repozitare http://​plugins.svn.wordpress.org/​akismet/​trunk
 +property '​svn:​externals'​ set on '​.'​
  
 ===== Autoprops pro Id a keywords obecne ===== ===== Autoprops pro Id a keywords obecne =====
Řádek 32: Řádek 40:
   svn:​eol-style=native   svn:​eol-style=native
 [[http://​www.zope.org/​DevHome/​Subversion/​SubversionConfigurationForLineEndings]] [[http://​www.zope.org/​DevHome/​Subversion/​SubversionConfigurationForLineEndings]]
 +===== Vrátit zpět provedený commit =====
 +
 +Say you just made a commit (revision 123 for file apple.py), you discovered (after the fact) that it was just crap and you want the previous version (revision 122) back.
 +
 +The common way to do it is with a merge of a reverse changeset (or something):
 +
 +  svn merge -r 123:122 apple.py
 +If your Subversion setup is recent enough (I successfully tried with version 1.5.1 e.g.) it is also possible to use the --change (-c in short) argument to specify the changeset:
 +
 +  svn merge -c -123 apple.py
 +The -c -ARG in this construct translates to -r ARG:ARG-1. Note the minus in front of the ARG: -c ARG translates to  -r ARG-1:ARG, which is not what we need here.
 +
 +Another possibility is using revision keywords:
 +
 +  svn merge -r COMMITTED:​PREV apple.py
 +Note that this undoes the last commit, while the previous commands let you specify the changeset you want to undo.
 +
 +[[http://​stefaanlippens.net/​svn_undo_commit]]
 +
 +pokud chceme úplně celý repozitář,​ dá se použít
 +  svn merge -r [current_version]:​[previous_version] [repository_url]
programovani/svn.txt · Poslední úprava: 21.08.2012 17:19 autor: wladik