docs:tips_n_tricks:rcs.html
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
docs:tips_n_tricks:rcs.html [23.05.2010 17:41 CEST] – created peter | docs:tips_n_tricks:rcs.html [19.11.2013 14:17 CET] – peter | ||
---|---|---|---|
Line 8: | Line 8: | ||
cd /etc | cd /etc | ||
mkdir RCS | mkdir RCS | ||
- | ci -l hosts | + | ci -l -d hosts |
To checkin further updates, use | To checkin further updates, use | ||
- | ci -l hosts | + | ci -l -d hosts |
the '' | the '' | ||
Line 18: | Line 18: | ||
To do a rollback to version 1.3 , use | To do a rollback to version 1.3 , use | ||
- | co -r1.3 hosts | + | co -r1.3 -M hosts |
To list all versions with changelog information, | To list all versions with changelog information, | ||
Line 32: | Line 32: | ||
rcsdiff -r1.2 -r1.4 hosts | rcsdiff -r1.2 -r1.4 hosts | ||
+ | ===== Recover from errors ===== | ||
+ | ==== rcs: RCS file RCS/XXX,v is in use ==== | ||
+ | After a crash of one of the rcs binaries, the folloing situation might arise: | ||
+ | |||
+ | ~ $ rcs -u1.1.1.1 abcd | ||
+ | rcs: RCS file RCS/abce,v is in use | ||
+ | ~ $ | ||
+ | | ||
+ | The cure is to remove a semaphore file: | ||
+ | |||
+ | ~ % ls -la RCS | ||
+ | total 8 | ||
+ | -r--r--r-- 1 user users 0 Nov 19 14:00 ,abcd, | ||
+ | drwxr-xr-x 2 user users 4096 Nov 19 14:00 ./ | ||
+ | drwxr-xr-x 3 user users 4096 Nov 19 13:59 ../ | ||
+ | -r--r--r-- 1 user users 2665 Nov 19 14:00 abcd,v | ||
+ | ~ $ rm -i RCS/,abcd, | ||
+ | rm: remove regular empty file `RCS/, | ||
+ | ~ $ rcs -u1.1.1.1 grub | ||
+ | RCS file: RCS/abcd,v | ||
+ | 1.1.1.1 unlocked | ||
+ | done | ||
+ | ~ $ |
docs/tips_n_tricks/rcs.html.txt · Last modified: 13.01.2024 11:56 CET by peter