ccollab addchanges (for ClearCase) |
Top Previous Next |
Usage: ccollab [global-options] addchanges [--diffbranch <value> --upload-comment <value>] <review> <file-spec> [<file-spec> ...]
addchanges - Attaches locally-modified files to a review
The first argument is the review specifier, then any number of files or directories can be given. Files are selected as-is; directories are scanned recursively for locally-modified files, which might include edits, additions, deletions, branches, integrations, moves, copies, and so on.
After the scan is complete, a file list is presented in a graphical editor so you can review the files about to be uploaded and make any corrections you wish.
For example, to create a new review and add all changes in the current directory and below, plus the file foo.txt, you would use: ccollab addchanges new . foo.txt
To upload modified files from the current working directory and all subdirectories to review 123:
ccollab addchanges 123 .
To upload file foo.txt and modified files from c:\dev\project into a brand new review:
ccollab addchanges new foo.txt c:\dev\project
The '--diffbranch' option allows local changes to be uploaded with a predecessor version in another branch as the previous version.
For example, to create a new review and add all changes in the current directory and below, and compare them to the predecessor versions in the \main branch, you would use:
ccollab addchanges --diffbranch main new .
You can also use the special branch name 'pre' to refer to the predecessor branch. For example, to add the local changes to hello.c compared to the most recent predecessor version in the previous branch to review 45, you would use:
ccollab addchanges --diffbranch pre 45 hello.c |