GNU GPL software - poznámky: Porovnání verzí
m cvs a patch |
|||
Řádek 10: | Řádek 10: | ||
patch -p0 < my.patch | patch -p0 < my.patch | ||
=== cvs update === | |||
<pre> | |||
Usage: cvs update [-APCdflRp] [-k kopt] [-r rev] [-D date] [-j rev] | |||
[-I ign] [-W spec] [files...] | |||
-A Reset any sticky tags/date/kopts. | |||
-P Prune empty directories. | |||
-C Overwrite locally modified files with clean repository copies. | |||
-d Build directories, like checkout does. | |||
-f Force a head revision match if tag/date not found. | |||
-l Local directory only, no recursion. | |||
-R Process directories recursively. | |||
-p Send updates to standard output (avoids stickiness). | |||
-k kopt Use RCS kopt -k option on checkout. (is sticky) | |||
-r rev Update using specified revision/tag (is sticky). | |||
-D date Set date to update from (is sticky). | |||
-j rev Merge in changes made between current revision and rev. | |||
-I ign More files to ignore (! to reset). | |||
-W spec Wrappers specification line. | |||
</pre> |
Verze z 6. 12. 2007, 10:04
CVS
CVS a patch
CVS umožňuje pracovat na lokální kopii zdrojových textů, která nemá povolený zápis na CVS server. Pokud chceme uložit provedené změny v lokální kopii, vyrobíme nejprve soubor změn vzhledem k CVS archivu
cvs diff -u > my.path
Změny můžeme snadno přenést do ostré kopie (s povoleným zápisem) pomocí programu patch
patch -p0 < my.patch
cvs update
Usage: cvs update [-APCdflRp] [-k kopt] [-r rev] [-D date] [-j rev] [-I ign] [-W spec] [files...] -A Reset any sticky tags/date/kopts. -P Prune empty directories. -C Overwrite locally modified files with clean repository copies. -d Build directories, like checkout does. -f Force a head revision match if tag/date not found. -l Local directory only, no recursion. -R Process directories recursively. -p Send updates to standard output (avoids stickiness). -k kopt Use RCS kopt -k option on checkout. (is sticky) -r rev Update using specified revision/tag (is sticky). -D date Set date to update from (is sticky). -j rev Merge in changes made between current revision and rev. -I ign More files to ignore (! to reset). -W spec Wrappers specification line.