Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

25 lines (24 sloc) 0.747 kb
" Author : Manpreet Singh < junkblocker@yahoo.com > " {{{
" Copyright : 2006-2014 by Manpreet Singh
" License : This file is placed in the public domain.
" No warranties express or implied. Use at your own risk.
" Initialization {{{
let s:driver = {}
let s:mercurial = {}
"}}}
function! s:mercurial.detect() " {{{
return isdirectory('.hg')
endfunction
" }}}
function! s:mercurial.get_diff() " {{{
let l:diff = s:driver.generate_diff('hg diff')
return {'strip': 1, 'diff': l:diff}
endfunction
" }}}
function! patchreview#mercurial#register(remote) "{{{
let s:driver = a:remote
return s:mercurial
endfunction
" }}}
" vim: set et fdl=1 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.