(dir=None)
| 110 | assert re.match(tree, result, re.MULTILINE) |
| 111 | |
| 112 | def scm(dir=None): |
| 113 | if not dir: |
| 114 | dir = os.getcwd() |
| 115 | |
| 116 | if os.path.isdir(os.path.join(dir, '.git')): |
| 117 | return 'git' |
| 118 | elif os.path.isdir(os.path.join(dir, '.hg')): |
| 119 | return 'hg' |
| 120 | |
| 121 | def mkcommit(dir=None, files=[]): |
| 122 | with cd(dir or os.getcwd()): |
no outgoing calls