Permalink
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (24 sloc) 754 Bytes
" 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:monotone = {}
" }}}
function! s:monotone.detect() " {{{
return isdirectory('_MTN')
endfunction
" }}}
function! s:monotone.get_diff() " {{{
let l:diff = s:driver.generate_diff('mtn diff --unified')
return {'diff': 0, 'diff': l:diff}
endfunction
" }}}
function! patchreview#monotone#register(remote) "{{{
let s:driver = a:remote
return s:monotone
endfunction
" }}}
" vim: set et fdl=1 fdm=marker fenc= ff=unix ft=vim sts=0 sw=2 ts=2 tw=79 nowrap :
"}}}