File: __driver__.lua

package info (click to toggle)
monotone 1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie-kfreebsd
  • size: 20,648 kB
  • sloc: cpp: 86,443; sh: 6,906; perl: 924; makefile: 838; python: 517; lisp: 379; sql: 118; exp: 91; ansic: 52
file content (19 lines) | stat: -rw-r--r-- 572 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

if existsonpath("cp") then
  get("nix-cphook.lua", "cphook.lua")
elseif existsonpath("xcopy") then
  -- This actually copies it to testfile.copied/testfile,
  -- but that still makes testfile.copied exists. So it's
  -- not exactly the same as the other hook, but it works.
  get("win-cphook.lua", "cphook.lua")
else
  skip_if(true)
end

mtn_setup()

writefile("testfile", "blah blah")

check(mtn("add", "cphook.lua"), 0, false, false)
check(mtn("--branch=testbranch", "--rcfile=cphook.lua", "commit", "--message=test"), 0, false, false)
check(exists("testfile.copied"))