KKREVERT

To restore a file to a previously tracked state in KKVCS DOS Version Control, you can use the KKREVERT utility. For example:

C:\> KKREVERT cookie.c 2
Changes reverted

KKREVERT will use the differences stored at _revs\2\cookie.c and compare them with the original copy of cookie.c stored at _revs\1\cookie.c to rebuild the working copy of cookie.c to have the same contents it had at revision 2.

As a result, any revisions of cookie.c newer than revision 2 will get deleted. For example, if cookie.c was at revision 5, then the following files will be deleted:

_revs\3\cookie.c
_revs\4\cookie.c
_revs\5\cookie.c

The entry for cookie.c in _kkvcs.txt will now show that cookie.c is back at revision 2:

C:\> find "cookie.c" _kkvcs.txt

---------- COOKIE.C
cookie.c,2