|
|||||||||||||
cvs co directory or module |
|
||||||||||||
|
cvs co and bk clone are not exactly commensurate. While cvs co checks out a working copy of a version of the repository -- TOT or a version based on a tag, date, or revision number -- bk clone makes a copy of the repository itself. Cloning a repository is like doing cp -r /path/to/cvs/repo/* ~/myrepo/ (not that you'd ever do that!). bk clone creates a private instance of the repository from and to which you can checkout, modify, merge, remove, and check in files. To work with files in your repository clone, check them out:
Details:
|
|||||||||||||
cd ~/mytree; cvs update |
|||||||||||||
|
Your private repository is a "child" of the "parent" repository that you cloned. Use bk pull to update your repository with changes committed to the parent since the time that you either created your clone or last pulled. If merge conflicts occur during the pull, Bitkeeper will report them. Use bk resolve to resolve the conflicts. |
|||||||||||||
cvs add [-kb] |
bk new [-b] |
||||||||||||
|
bk new adds and checks in one or more files to your repository, placing it under revision control. Like cvs add, bk new is not recursive.
To add many files in multiple directories, try this:
Details:
|
|||||||||||||
cvs commit -m "checkin comment" |
bk ci -y"checkin comment" |
||||||||||||
|
No space is allowed between the -y and the quoted comment. Note: You are strongly encouraged to use bk citool for all of your check-ins and commits. It's cleaner, easier, and fosters better comments!
Checkins and changesets:
Details:
The simple answer is, whenever you need to exchange data with another repository -- e.g., update your repository with bk pull or promote your changes to your repository's parent with bk push. Stated simply, you cannot pull or push without first grouping your checked-in changes into a changeset. |
|||||||||||||
cvs remove filename or directory |
bk rm or bk rmdir |
||||||||||||
|
The files and directories are moved to BitKeeper's version of the CVS Attic, ~/myrepo/BitKeeper/deleted. |
|||||||||||||
n/a |
bk mv |
||||||||||||
|
bk mv has no corollary in CVS. bk mv renames the checked-out file (if any) as well as the revision control file in the SCCS directory. Edited files are also renamed and then re-edited (i.e., checked out), preserving any changes that are not yet checked in. bk mv operations appear as a change when you commit the next changeset. Moves propagate like content changes, that is, they are applied in the next pull or clone. Use bk mvdir, not bk mv, to rename directories. |
|||||||||||||
cvs diff |
bk diffs or bk difftool |
||||||||||||
|
View differences between your checked-out file and the latest or earlier committed version in your repository. Just like CVS, bk diffs can be used with a revision number, as in bk diffs -r1.2 filename.ext. Details:
The short answer is, you can't -- not without pulling an update from the parent. That said, if the parent has changesets that you do not have and if both the parent and child repository are on the same file system, you could get a meaningful diff with bk treediff. |
|||||||||||||
cvs history |
bk cmdlog [-a] |
||||||||||||
| Displays the history of repository-level commands run in the repository for the current directory. Repository level commands are clone, commit, export, pull, and push. | |||||||||||||
cvs import |
bk import or "bk extras | bk new -" |
||||||||||||
| See cvs add / bk new above. | |||||||||||||
cvs log |
bk prs or bk changes |
||||||||||||
|
bk prs shows the revision summary for a single file or directory of files. It is not recursive. bk changes shows the changeset history for the entire repository. Again, this command operates on the entire repository, even if you cd deep into your tree and specify a single file. |
|||||||||||||
cvs release filename or directory |
bk ci -y"comment" filename or directory |
||||||||||||
|
bk edit checks out and locks a file for modification. To release the lock, check in your changes and run bk clean to remove the file. If don't want to keep your modifications, use bk unedit filename to unlock the file (use with caution!) Details:
|
|||||||||||||
cvs status |
bk status [-v] |
||||||||||||
| Analyzes the status of your checked-out tree. Verbose mode, -v, lists the parent repository, users, files not under revision control (extras), files modified and not checked in, and files with checked-in-but-not-committed deltas. | |||||||||||||
bk extras or bk status -v |
|||||||||||||
| Finds files that are not under revision control. | |||||||||||||
Last modified: 02/08/2002
Written by Engineering Infrastructure Group, Intransa Inc.