Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: d22b7304ac
Fetching contributors…

Cannot retrieve contributors at this time

28 lines (22 sloc) 0.723 kB
" Author : Manpreet Singh < junkblocker@yahoo.com > " {{{
" Copyright : 2006-2012 by Manpreet Singh
" License : This file is placed in the public domain.
" No warranties express or implied. Use at your own risk.
"}}}
let s:PRemote = {}
let s:mercurial = {}
function! s:mercurial.Detect() " {{{
return isdirectory('.hg')
endfunction
" }}}
function! s:mercurial.GetDiff() " {{{
let l:diff = s:PRemote.GenDiff('hg diff')
return {'strip': 1, 'diff': l:diff}
endfunction
" }}}
function! patchreview#mercurial#register(remote) "{{{
let s:PRemote = a:remote
return s:mercurial
endfunction
" }}}
" vim: set et fdl=99 fdm=marker fenc= ff=unix ft=vim sts=0 sw=2 ts=2 tw=79 nowrap :
Jump to Line
Something went wrong with that request. Please try again.