# HG changeset patch # User k0s # Date 1266354213 0 # Node ID 5a909090fb241442c754c17b008d6313bc52744b # Parent 0da780dd81d01f9dc717e3460c89f2032585fc5b make the destination directory for mirroring if it doesnt exist diff -r 0da780dd81d0 -r 5a909090fb24 silvermirror/hg.py --- a/silvermirror/hg.py Thu Jan 28 13:46:58 2010 -0500 +++ b/silvermirror/hg.py Tue Feb 16 21:03:33 2010 +0000 @@ -76,6 +76,9 @@ print repo sys.exit(0) + if not os.path.exists(options.directory): + os.mkdir(options.directory) + os.chdir(options.directory) for repo in repos: update(options.host, repo)