File: testhook.lua

package info (click to toggle)
monotone 0.31-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 20,680 kB
  • ctags: 14,801
  • sloc: cpp: 87,711; ansic: 64,862; sh: 5,691; lisp: 954; perl: 783; makefile: 509; python: 265; sql: 98; sed: 16
file content (16 lines) | stat: -rw-r--r-- 491 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
function external_diff(file_path, data_old, data_new, is_binary, diff_args, rev_old, rev_new)
  io.write("file_path: " .. file_path .. "\n")
  f = io.open("old_version", "w")
  f:write(data_old)
  io.close(f)
  f = io.open("new_version", "w")
  f:write(data_new)
  io.close(f)
  if diff_args == nil then
    io.write("diff_args is NIL\n")
  else
    io.write("diff_args: " .. diff_args .. "\n")
  end
  io.write("rev_old: " .. rev_old .. "\n")
  io.write("rev_new: " .. rev_new .. "\n")
end