File: __driver__.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 (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"))