Mercurial > hg > silvermirror
comparison silvermirror/hg.py @ 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 | f8edfc9c28ba |
comparison
equal
deleted
inserted
replaced
8:0da780dd81d0 | 9:5a909090fb24 |
---|---|
74 if options.list: | 74 if options.list: |
75 for repo in repos: | 75 for repo in repos: |
76 print repo | 76 print repo |
77 sys.exit(0) | 77 sys.exit(0) |
78 | 78 |
79 if not os.path.exists(options.directory): | |
80 os.mkdir(options.directory) | |
81 | |
79 os.chdir(options.directory) | 82 os.chdir(options.directory) |
80 for repo in repos: | 83 for repo in repos: |
81 update(options.host, repo) | 84 update(options.host, repo) |
82 | 85 |
83 | 86 |