" Copyright 2005 Sun Microsystems, Inc. All rights reserved.
" Use is subject to license terms.
"
" CDDL HEADER START
"
" The contents of this file are subject to the terms of the
" Common Development and Distribution License, Version 1.0 only
" (the "License"). You may not use this file except in compliance
" with the License.
"
" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
" or http://www.opensolaris.org/os/licensing.
" See the License for the specific language governing permissions
" and limitations under the License.
"
" When distributing Covered Code, include this CDDL HEADER in each
" file and include the License file at usr/src/OPENSOLARIS.LICENSE.
" If applicable, add the following below this CDDL HEADER, with the
" fields enclosed by brackets "[]" replaced with your own identifying
" information: Portions Copyright [yyyy] [name of copyright owner]
"
" CDDL HEADER END
"
ident "%Z%%M% %I% %E% SMI"
:
Include the paths of any files added, deleted, or modified. You can keep this list of files in the webrev directory that webrev creates in your workspace directory (CODEMGR_WS). 2) webrev needs to be able locate your workspace and its parent. If you have already activated your workspace with the "ws" command then webrev will use the CODEMGR_WS environment variable. If you are not working within a workspace activation, then you need to set the environment variable within the file list, e.g.
CODEMGR_WS=/home/brent/myws usr/src/uts/common/fs/nfs/nfs_subr.c usr/src/uts/common/fs/nfs/nfs_export.c usr/src/cmd/fs.d/nfs/mountd/mountd.c:
If you would like to compare against some other workspace that is not the parent, then you can set the CODEMGR_PARENT environment variable in the file list, e.g.
CODEMGR_WS=/home/brent/mywsCODEMGR_PARENT=/ws/onnv-gate usr/src/uts/common/fs/nfs/nfs_subr.c usr/src/uts/common/fs/nfs/nfs_export.c usr/src/cmd/fs.d/nfs/mountd/mountd.c
:
3) Run webrev with the name of the file containing the file list as an argument, e.g.
$ webrev file.listIf you supply "-" as the name of the file, then stdin will be used. If you use the "-w" flag, i.e. "webrev -w file.list" then webrev will assume the file list is in the format expected by the "wx" package: pathname lines alternating with SCCS comment lines separated by blank lines, e.g.
usr/src/uts/common/fs/nfs/nfs_subr.c 1206578 Fix spelling error in comment usr/src/uts/common/fs/nfs/nfs_export.c 4039272 cstyle fixes usr/src/cmd/fs.d/nfs/mountd/mountd.c 1927634 mountd daemon doesn't handle expletivesEmbedded bug ids and ARC cases will be converted to a URL (see below). 4) For each file in the list, webrev will compare it with the version in the parent workspace (CODEMGR_PARENT) and generate context and side-by-side diffs (sdiffs) as HTML files as well as HTML renderings of the old and new files with prepended line numbers for easy cross-checking with diffs. The HTML files will have additional formatting to color code the source lines:
unchanged : black removed : brown changed : blue new : bold blue5) Webrev will create a directory $CODEMGR_WS/webrev and create the HTML files in a hierarchy beneath this directory. Links to these HTML files will be built into an index.html file in the "webrev" directory. If you would like the "webrev" directory to appear somewhere other than $CODEMGR_WS, then set the WDIR environment variable, e.g.
WDIR=/tmp webrev -lEach file will be listed on a line with a link to its Cdiffs, Udiffs, Wdiffs, Sdiffs, Frames, Old, and New versions. A blank line will be inserted between filenames that do not exist within the same directory as a grouping aid. SCCS comments for each delta will be included automatically. Bug numbers (any sequence of 5 or more digits) and ARC cases (ARC name followed by year/number, e.g. PSARC/2003/436) in the comment will become a URL into the associated web interface.
As a review aid, you can add value to the index file by including text that explains the changes in front of the links for each file. You might also add links to the one-pager, project plan, or other documents helpful to the reviewer. 6) View the index.html file with your web browser to verify that its what you want your reviewers to see. The browser must support HTML tables and colored fonts. The Frames view requires HTML frames and JavaScript, as does Wdiff which also requires Dynamic HTML support. 7) Then send an Email invitation to your reviewers including the URL to the index.html file in your workspace. If you use an "http:" URL then you can omit the "index.html" filename, e.g.
To: bob, jane, wendySubject: Please review fix for bug 1234576 I'd be grateful if you would review my bugfix. All the relevant information can be obtained with the following URL: http://jurassic.eng/home/brent/myws/webrev Thanks
Brent