| | | |
| == Status == | | == Status == |
| | | |
n | Basic function is alreay implemented on top of python difflib. | n | Basic function is already implemented on top of python difflib. |
| | | |
| == Usage == | | == Usage == |
| | | |
n | | n | Checkout trunk revision http://code.google.com/p/coderev/source/checkout or |
| Download from http://code.google.com/p/coderev/downloads/list and extract the | | download from http://code.google.com/p/coderev/downloads/list and extract the |
| tarball to your disk, there are two tools present for you - codediff.py (to | | tarball to your disk, there are two tools present for you - codediff.py (to |
| compare files/dirs) and coderev.sh (to generate code review page on your svn | | compare files/dirs) and coderev.sh (to generate code review page on your svn |
| work space). | | work space). |
| wrapped for sdiff, default is no line wrapping | | wrapped for sdiff, default is no line wrapping |
| -y, --yes do not prompt for overwriting | | -y, --yes do not prompt for overwriting |
| | | |
n | | n | |
| * coderev.sh usage | | * coderev.sh usage |
| | | |
n | | n | (optional) cp coderevrc.sample ~/.coderevrc, customize your own |
| | | cd your-workspace |
| coderev.sh [-r revsion] [file|subdir ...] | | coderev.sh [-r revsion] [-w width] [file|subdir ...] |
| | | |
n | `revision' is a revision number, or symbol (PREV, BASE, HEAD), see svn | n | `revision' is a revision number, or symbol (PREV, BASE, HEAD) in svn, |
| books for details. Default revision is revision of your working copy | | see svn books for details. Default revision is revision of your working |
| (aka. BASE) | | copy |
| | | |
| | | `width' is a number to make code review pages wrap in specific column |
| | | |
| Default `subdir' is working dir. | | Default `subdir' is working dir. |
| | | |
| Example 1: | | Example 1: |
n | coderev.sh bin lib | n | coderev.sh -w80 bin lib |
| | | |
n | Generate coderev based on your working copy. If you are working on the | n | Generate coderev based on your working copy, web pages wrap in column 80. |
| most up-to-date version, this is suggested way (faster). | | If you are working on the most up-to-date version, this is suggested way |
| | | (faster). |
| | | |
t | Example 2: | t | Example 2 (for SVN): |
| coderev.sh -r HEAD bin lib | | coderev.sh -r HEAD bin lib |
| | | |
| Generate coderev based on HEAD revision (up-to-date version in repository), | | Generate coderev based on HEAD revision (up-to-date version in repository), |