Skip to content

Instantly share code, notes, and snippets.

@supki
Created March 19, 2013 17:06
Show Gist options
  • Select an option

  • Save supki/5197975 to your computer and use it in GitHub Desktop.

Select an option

Save supki/5197975 to your computer and use it in GitHub Desktop.
M
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