(mbed, dir, tree)
| 101 | return os.path.abspath(name+'.hg').replace('\\', '/') |
| 102 | |
| 103 | def assertls(mbed, dir, tree): |
| 104 | tree = ''.join(re.escape(l)+r'.*\n' for l in tree) |
| 105 | |
| 106 | with cd(dir): |
| 107 | result = pquery(['python', mbed, 'ls']) |
| 108 | |
| 109 | print(result) |
| 110 | assert re.match(tree, result, re.MULTILINE) |
| 111 | |
| 112 | def scm(dir=None): |
| 113 | if not dir: |