Created
March 19, 2013 17:06
-
-
Save supki/5197975 to your computer and use it in GitHub Desktop.
M
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from svnie import * | |
| sl = Layout("/tmp/svnie.XfW7tz", | |
| [ Directory("scripts", | |
| [ File("build.sh", "#!/bin/bash\necho build\n") | |
| , File("release.sh", "#!/bin/bash\necho release\n") | |
| ]) | |
| , Directory("sources", | |
| [ File("main.cpp", "int main(){ return 0 }\n") | |
| ]) | |
| ]) | |
| sl.create() | |
| sl.commit() | |
| sl["scripts"]["build.sh"].append("echo rebuild\n") | |
| sl.commit() | |
| sl.destroy() | |
| with layout(sl): | |
| sl.commit() | |
| sl["scripts"]["build.sh"].append("echo rebuild\n") | |
| sl.commit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment