monotone

monotone Mtn Source Tree

Root/testsuite.txt

1ostype
2
3For convenience, this is the first word of what get_ostype() returns.
4
5getpathof(exe, ext) [internal]
6
7Used to find the mtn executable. This looks in cwd before searching the path.
8
9monotone_path
10
11Set the the path of the mtn executable. If the testsuite is run from a dir
12containing an mtn executable, that executable is used instead of any that
13might be on the path.
14
15mtn [env var]
16
17Set to monotone_path. This is used by one of the test hooks, for file:/ sync.
18
19safe_mtn() [internal]
20raw_mtn()
21
22A monotone that won't escape the test dir.
23
24mtn()
25
26A monotone with most of the boilerplate options. You probably want to use
27this one.
28
29minhooks_mtn()
30
31Like mtn(), but it uses a different hooks file.
32
33commit([branch [, message [, mt]]])
34
35Commit to the given branch, or "testbranch". Uses mtn(), or mt() if that is
36given.
37
38sha1(file)
39
40Return the hash of the given file.
41
42probe_node(filename, rsha, fsha)
43
44Check out a given revision, and check that a given file has the correct hash.
45
46mtn_setup()
47
48General setup, always call this first.
49
50base_revision()
51base_manifest()
52
53Return hashes associated with the workspace base revision.
54
55certvalue(rev, name)
56
57Return the value of the given cert. If there are multiple certs matched, only
58return the first one.
59
60qgrep(what, where)
61
62More convenient than using grep("-q", ...). Returns true/false.
63
64addfile(filename, contents [, mt])
65
66Write the given file, then add it (Using the specified monotone, if given).
67
68revert_to(rev, branch [, mt])
69
70Use "mtn checkout" to set the workspace to the given branch and revision.
71
72canonicalize(filename)
73
74When used on Windows, make sure that the given file uses "\n" line endings.
75
76check_same_db_contents(db1, db2)
77
78check_{same,different}_stdout(cmd, cmd)
79Compare stdout of the two commands.
80check_{same,different}_stdout(args, fn1, fn2)
81Compare the output of the two commands, when given the specified args.
82
83write_large_file(filename, size)
84
85Write a size MB random file.
86
87

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status