Skip to content

Commit

Permalink
Version 1.0.3: Perforce diff was skipping files added via branching
Browse files Browse the repository at this point in the history
  • Loading branch information
junkblocker authored and vim-scripts committed Aug 8, 2012
1 parent 31cd0ba commit 3b6e443
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion autoload/patchreview.vim
@@ -1,14 +1,16 @@
" VIM plugin for doing single, multi-patch or diff code reviews {{{ " VIM plugin for doing single, multi-patch or diff code reviews {{{
" Home: http://www.vim.org/scripts/script.php?script_id=1563 " 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 > " Author : Manpreet Singh < junkblocker@yahoo.com >
" Copyright : 2006-2012 by Manpreet Singh " Copyright : 2006-2012 by Manpreet Singh
" License : This file is placed in the public domain. " License : This file is placed in the public domain.
" No warranties express or implied. Use at your own risk. " No warranties express or implied. Use at your own risk.
" "
" Changelog : " Changelog :
" "
" 1.0.3 - Perforce diff was skipping files added via branching
"
" 1.0.2 - Fix for system's patch command on BSDs. " 1.0.2 - Fix for system's patch command on BSDs.
" - Better exception handling " - Better exception handling
" "
Expand Down
2 changes: 1 addition & 1 deletion autoload/patchreview/perforce.vim
Expand Up @@ -50,7 +50,7 @@ function! s:perforce.GetDiff() " {{{
let l:diff += ['@@ -1,' . len(l:diffl) . ' +0,0 @@'] let l:diff += ['@@ -1,' . len(l:diffl) . ' +0,0 @@']
let l:diff += l:diffl let l:diff += l:diffl
unlet! 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) call s:PRemote.Status('Reading ' . l:fwhere)
let l:diff += ['--- /dev/null'] let l:diff += ['--- /dev/null']
let l:diff += ['+++ ' . l:fwhere] let l:diff += ['+++ ' . l:fwhere]
Expand Down
2 changes: 1 addition & 1 deletion doc/patchreview.txt
@@ -1,5 +1,5 @@
*patchreview.txt* Vim global plugin for doing single, multi-patch or diff code reviews *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 > Author: Manpreet Singh < junkblocker@yahoo.com >
Copyright (C) 2006-2011 by Manpreet Singh Copyright (C) 2006-2011 by Manpreet Singh
Expand Down
4 changes: 2 additions & 2 deletions plugin/patchreview.vim
@@ -1,7 +1,7 @@
" VIM plugin for doing single, multi-patch or diff code reviews {{{ " VIM plugin for doing single, multi-patch or diff code reviews {{{
" Home: http://www.vim.org/scripts/script.php?script_id=1563 " 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 > " Author : Manpreet Singh < junkblocker@yahoo.com >
" Copyright : 2006-2012 by Manpreet Singh " Copyright : 2006-2012 by Manpreet Singh
" License : This file is placed in the public domain. " License : This file is placed in the public domain.
Expand Down Expand Up @@ -62,7 +62,7 @@
if &cp || (! exists('g:patchreview_debug') && exists('g:loaded_patchreview')) if &cp || (! exists('g:patchreview_debug') && exists('g:loaded_patchreview'))
finish finish
endif endif
let g:loaded_patchreview="1.0.2" let g:loaded_patchreview="1.0.3"
if v:version < 700 if v:version < 700
echomsg 'patchreview: You need at least Vim 7.0' echomsg 'patchreview: You need at least Vim 7.0'
finish finish
Expand Down

0 comments on commit 3b6e443

Please sign in to comment.