File: basic.lua

package info (click to toggle)
monotone 1.0-6
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 20,708 kB
  • sloc: cpp: 84,765; sh: 6,787; perl: 837; makefile: 833; python: 517; lisp: 379; sql: 118; exp: 88; ansic: 52
file content (33 lines) | stat: -rw-r--r-- 1,065 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---- If you change this code, you will have to regenerate all of the
---- "basic-N" workspaces.

return {
   min_format = 1,
   creator =
      function ()
	 check(mtn("setup", "-b", "basicbranch", "basic-current"))
	 chdir("basic-current")
	 addfile("testfile1", "blah blah\n")
	 addfile("testfile2", "asdfas dfsa\n")
	 check(mtn("attr", "set", "testfile1", "test:attr", "fooooo"),
	       0, false, false)

	 commit("basicbranch")

	 -- make some edits to the files
	 writefile("testfile1", "new stuff\n")
	 writefile("testfile2", "more new stuff\n")
	 -- and some tree rearrangement stuff too
	 check(mtn("rename", "testfile2", "renamed-testfile2"),
	       0, false, false)
	 check(mtn("attr", "set", "renamed-testfile2", "test:attr2", "asdf"),
	       0, false, false)
	 check(mtn("attr", "drop", "testfile1", "test:attr"),
	       0, false, false)
	 mkdir("newdir")
	 writefile("newdir/file3", "twas mimsy and the borogroves\n")
	 check(mtn("add", "newdir", "newdir/file3"), 0, false, false)
	 chdir("..")
      end,
   checker = function (dir, refdir) end
}