Mercurial > hg > silvermirror
changeset 9:5a909090fb24
make the destination directory for mirroring if it doesnt exist
author | k0s <k0scist@gmail.com> |
---|---|
date | Tue, 16 Feb 2010 21:03:33 +0000 |
parents | 0da780dd81d0 |
children | c69fb6d00ece |
files | silvermirror/hg.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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)