# # # patch "notes/testsuite.txt" # from [353ecf6e42c7e74ed79405f94fb8863b3410888e] # to [d2b453f4290156262442ea425930238866270a2a] # # patch "testsuite.lua" # from [468554c427354f1b781a7146cfa78b242afa4ddd] # to [3c21127ddaca1f8b80db5ea3b9b475e0626ffd5d] # ============================================================ --- notes/testsuite.txt 353ecf6e42c7e74ed79405f94fb8863b3410888e +++ notes/testsuite.txt d2b453f4290156262442ea425930238866270a2a @@ -73,6 +73,12 @@ Write the given file, then add it (Using the specified monotone, if given). +adddir(dirname [, mt]) + + Adds the specified directory to monotone (using the given monotone + instance or the global one). Checks if the path is a directory at all, + if not tries to create the directory. + revert_to(rev, branch [, mt]) Use "mtn checkout" to set the workspace to the given branch and revision. ============================================================ --- testsuite.lua 468554c427354f1b781a7146cfa78b242afa4ddd +++ testsuite.lua 3c21127ddaca1f8b80db5ea3b9b475e0626ffd5d @@ -188,6 +188,12 @@ end check(mt("add", filename), 0, false, false) end +function adddir(dirname, mt) + if not isdir(dirname) then mkdir(dirname) end + if mt == nil then mt = mtn end + check(mt("add", dirname), 0, false, false) +end + function revert_to(rev, branch, mt) if type(branch) == "function" then mt = branch