File: __driver__.lua

package info (click to toggle)
monotone 1.1-9
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 20,984 kB
  • ctags: 8,622
  • sloc: cpp: 86,450; sh: 6,906; perl: 924; makefile: 813; python: 517; lisp: 379; sql: 118; exp: 91; ansic: 52
file content (18 lines) | stat: -rw-r--r-- 573 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--
-- This is a test for bug #29927 - before monotone 0.47 if clone 
-- was executed in a directory with an existing bookkeeping directory
-- then this directory was removed on failure, actively destroying an
-- existing workspace
--


mtn_setup()
check(exists("_MTN"))

check(mtn("setup", "-b", "test.branch", "."), 1, false, true)
check(qgrep("bookkeeping directory already exists", "stderr"))
check(exists("_MTN"))

check(mtn("clone", "somewhere", "test.branch", "."), 1, false, true)
check(qgrep("bookkeeping directory already exists", "stderr"))
check(exists("_MTN"))