Source

aurum / test / drivers-bazaar.vim

The branch 'bzr-support' does not exist.
Diff from to

test/drivers-bazaar.vim

 call Brepo.functions.ignore(Brepo, 'I-')
 call Brepo.functions.ignoreglob(Brepo, 'Ign*')
 call FormatStatus(Brepo.functions.status(Brepo, 0, 0, 0, 1, 1), Brepo.path)
+function PurgeDiffPlusDates(lines)
+    return map(a:lines, 'v:val[:3] is# "+++ " ? '.
+                \           'substitute(v:val, "\t[^\t]\\+$", "", "") : '.
+                \           'v:val')
+endfunction
 let r+=[' >> File bzrlines.lst']
 let r+=['  > File (2)']
 let r+=map(Brepo.functions.readfile(Brepo, '2', 'bzrlines.lst'), '"   ".v:val')
 let r+=['  > Annotation (-1)']
 let r+=map(Brepo.functions.annotate(Brepo, '-1', 'bzrlines.lst'), '"   ".string(v:val)')
 let r+=[' >> Diff (default)']
-let r+=Brepo.functions.diff(Brepo, 0,   0,   0,                {})
+let r+=PurgeDiffPlusDates(Brepo.functions.diff(Brepo, 0,   0,   0,                {}))
 let r+=[' >> Diff (first revision)']
-let r+=Brepo.functions.diff(Brepo, '1', 0,   0,                {})
+let r+=PurgeDiffPlusDates(Brepo.functions.diff(Brepo, '1', 0,   0,                {}))
 let r+=[' >> Diff (second revision)']
-let r+=Brepo.functions.diff(Brepo, 0,   '1', 0,                {})
+let r+=PurgeDiffPlusDates(Brepo.functions.diff(Brepo, 0,   '1', 0,                {}))
 let r+=[' >> Diff (both revisions)']
-let r+=Brepo.functions.diff(Brepo, '6', '1', 0,                {})
+let r+=PurgeDiffPlusDates(Brepo.functions.diff(Brepo, '6', '1', 0,                {}))
 let r+=[' >> Diff (with file)']
-let r+=Brepo.functions.diff(Brepo, '1', '6', ['bzrlines.lst'], {})
+let r+=PurgeDiffPlusDates(Brepo.functions.diff(Brepo, '1', '6', ['bzrlines.lst'], {}))
 
 call WriteFile(r)
 source addEmessages.vim