sponsor Vim development Vim logo Vim Book Ad

patchreview.vim : Plugin for single or multipatch code reviews and workspace change/diff reviews

 script karma  Rating 28/9, Downloaded by 1211    Comments, bugs, improvements  Vim wiki

created by
Manpreet Singh
 
script type
utility
 
description
The Patch Review plugin allows easy single or multipatch code or diff reviews.

It opens each affected (modified/added/deleted) file in the patch or in a version controlled workspace diff in a diff view in a separate tab.

VIM provides the :diffpatch command to do single file reviews but can not handle patch files containing multiple patches as is common with software development projects.  This plugin provides that missing functionality.

It also does not pollute the workspace like :diffpatch does by writing files in the workspace.

It does automatic diff generation for various version control systems by running their respective diff commands.

(Keywords: codereview, codereviews, code review, patch, patchutils, diff, diffpatch, patchreview, patchreviews, patch review, vcs, scm, mercurial, bazaar, hg, bzr, cvs, monotone, mtn, git, perforce)
 
install details
QUICK INSTALL

  1. Unzip the files in your ~/.vim directory.

   2. Open Vim and do::

      :helptags ~/.vim/doc

REQUIREMENTS

1) Vim 7.2 or higher built with +diff option.

2) A gnu compatible patch command installed. This is the standard patch command on any Linux, Mac OS X, \*BSD, Cygwin or /usr/bin/gpatch on newer   Solaris/OpenSolairs.

   For Windows, UnxUtils ( http://unxutils.sourceforge.net/ ) provides a compatible patch implementation. However, you might need to set::

         let g:patchreview_patch_needs_crlf = 1

   in your .vimrc file.

USAGE

Reviewing current changes in your workspace::

      :DiffReview

Reviewing staged git changes::

      :DiffReview git staged --no-color -U5

Reviewing a patch::

      :PatchReview some.patch

Reviewing a previously applied patch (AKA reverse patch review)::

      :ReversePatchReview some.patch

See::

      :h patchreview

for usage details.

Fork me at http://github.com/junkblocker/patchreview-vim
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
patchreview-1.0.6.zip 1.0.6 2013-02-12 7.2 Manpreet Singh Convert .rej files to unified format if possible for better readability. Disable via g:patchreview_unified_rejects flag.
patchreview-1.0.5.zip 1.0.5 2012-10-21 7.2 Manpreet Singh 1) Fixed context format patch handling
2) minor *BSD detection improvement
patchreview-1.0.4.zip 1.0.4 2012-07-24 7.2 Manpreet Singh Fix breakage on vim 7.2. List 7.2 as the minimum vim version required.
patchreview-1.0.3.zip 1.0.3 2012-07-18 7.0 Manpreet Singh Perforce diff was skipping files added via branching
patchreview-1.0.2.zip 1.0.2 2012-07-12 7.0 Manpreet Singh Fix for default patch command on BSD (it's not GNU compatible but perfectly usable)
patchreview-1.0.1.zip 1.0.1 2012-04-06 7.0 Manpreet Singh Set foldmethod to diff for patched buffers. This removes the annoying need to open folds by hand in 1.0.
patchreview-1.0.zip 1.0 2012-03-17 7.0 Manpreet Singh - Added Perforce support
- Add support for arbitrary diff generation commands
- Added ability to plug in new version control systems by others
- Added ability to create diffs in a way which lets session save/restore work better
- Windows fixes by Sergey Khorev
patchreview-0.3.2.zip 0.3.2 2011-08-20 7.0 Manpreet Singh Some diff extraction fixes and general error handling improvement
patchreview-0.3.1.zip 0.3.1 2011-05-21 7.0 Manpreet Singh Open the status buffer only in the current tab
patchreview-0.3.zip 0.3 2010-09-05 7.0 Manpreet Singh 1) Added Git support
2) Some error handling for files which may be open in VIM elsewhere
patchreview.zip 0.2.2 2010-02-25 7.0 Manpreet Singh 1) Security fixes by removing custom tempfile creation
2) Removed need for DiffReviewCleanup/PatchReviewCleanup
3) Better command execution error detection and display
4) Improved diff view and folding by ignoring modelines
5) Improved tab labels display
patchreview.zip 0.2 2010-02-21 7.0 Manpreet Singh 1) Added DiffReview command for reviewing local changes in the workspace

2) Removed the need for filterdiff by implemeting it in pure vim script
patchreview.zip 0.1 2006-05-25 7.0 Manpreet Singh Initial upload
ip used for rating: 54.234.180.187

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo