- Commands:
- $ touch foo.c
- $ cvs add foo.c
- cvs server: scheduling file `blah' for addition
- cvs server: use 'cvs commit' to add this file permanently
-
- $ mkdir new-dir
- $ cvs add new-dir
- Directory new-dir added to the repository
-
- $ rm bar.c
- $ cvs rm bar.c
- cvs remove: scheduling `bar.c' for removal
- cvs remove: use 'cvs commit' to remove this file permanently
-
- $ rm -rf old-dir/*
- $ cvs rm old-dir
- cvs remove: Removing 3bits
- …
- Explanation:
- Schedules a file or directory for addition or removal
to/from the repository. The repository will not be changed
until the user runs cvs commit, except for the case of
adding a directory, which immediately changes the repository.
Also, directories cannot be truly removed from the repository,
just emptied out. (cvs update -P will prune empty
directories from your working copy.)
|
- Commands:
- $ touch foo.c
- $ svn add foo.c
- A foo.c
-
- $ mkdir new-dir
- $ svn add new-dir
- A new-dir
-
- $ svn rm bar.c
- D bar.c
-
- $ svn rm old-dir
- D old-dir/file1
- D old-dir/file2
- …
- Explanation:
- Schedules a file or directory for addition or removal
to/from the repository. The repository will not be changed
until the user runs svn commit. The scheduled
operations are shown as A or D by svn
status, and svn revert can un-do the scheduling.
Directories really can be deleted (though as with all deleted
items, continues to exist in history.)
|