From 3b6e443e5c716e60b2c64693dd1341c2c6d37cc9 Mon Sep 17 00:00:00 2001 From: Manpreet Singh Date: Wed, 18 Jul 2012 00:00:00 +0000 Subject: [PATCH] Version 1.0.3: Perforce diff was skipping files added via branching --- autoload/patchreview.vim | 4 +++- autoload/patchreview/perforce.vim | 2 +- doc/patchreview.txt | 2 +- plugin/patchreview.vim | 4 ++-- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/autoload/patchreview.vim b/autoload/patchreview.vim index 3ff56b3..edde43f 100644 --- a/autoload/patchreview.vim +++ b/autoload/patchreview.vim @@ -1,7 +1,7 @@ " VIM plugin for doing single, multi-patch or diff code reviews {{{ " Home: http://www.vim.org/scripts/script.php?script_id=1563 -" Version : 1.0.2 {{{ +" Version : 1.0.3 {{{ " Author : Manpreet Singh < junkblocker@yahoo.com > " Copyright : 2006-2012 by Manpreet Singh " License : This file is placed in the public domain. @@ -9,6 +9,8 @@ " " Changelog : " +" 1.0.3 - Perforce diff was skipping files added via branching +" " 1.0.2 - Fix for system's patch command on BSDs. " - Better exception handling " diff --git a/autoload/patchreview/perforce.vim b/autoload/patchreview/perforce.vim index fc21e13..a861785 100644 --- a/autoload/patchreview/perforce.vim +++ b/autoload/patchreview/perforce.vim @@ -50,7 +50,7 @@ function! s:perforce.GetDiff() " {{{ let l:diff += ['@@ -1,' . len(l:diffl) . ' +0,0 @@'] let l:diff += l:diffl unlet! l:diffl - elseif l:line =~ '\(add \(default \)\?change\) .*\(text\|unicode\|utf16\)' + elseif l:line =~ '\(\(add\|branch\) \(default \)\?change\) .*\(text\|unicode\|utf16\)' call s:PRemote.Status('Reading ' . l:fwhere) let l:diff += ['--- /dev/null'] let l:diff += ['+++ ' . l:fwhere] diff --git a/doc/patchreview.txt b/doc/patchreview.txt index 8b6d254..dde6fd7 100644 --- a/doc/patchreview.txt +++ b/doc/patchreview.txt @@ -1,5 +1,5 @@ *patchreview.txt* Vim global plugin for doing single, multi-patch or diff code reviews - Version 1.0.2 (for Vim version 7.0 or higher) + Version 1.0.3 (for Vim version 7.0 or higher) Author: Manpreet Singh < junkblocker@yahoo.com > Copyright (C) 2006-2011 by Manpreet Singh diff --git a/plugin/patchreview.vim b/plugin/patchreview.vim index bf4dc27..f439c96 100644 --- a/plugin/patchreview.vim +++ b/plugin/patchreview.vim @@ -1,7 +1,7 @@ " VIM plugin for doing single, multi-patch or diff code reviews {{{ " Home: http://www.vim.org/scripts/script.php?script_id=1563 -" Version : 1.0.2 " {{{ +" Version : 1.0.3 " {{{ " Author : Manpreet Singh < junkblocker@yahoo.com > " Copyright : 2006-2012 by Manpreet Singh " License : This file is placed in the public domain. @@ -62,7 +62,7 @@ if &cp || (! exists('g:patchreview_debug') && exists('g:loaded_patchreview')) finish endif -let g:loaded_patchreview="1.0.2" +let g:loaded_patchreview="1.0.3" if v:version < 700 echomsg 'patchreview: You need at least Vim 7.0' finish