Mercurial > hg > config
diff python/setup_repo.py @ 526:4063bbeaa7d4
initial commit
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 24 Sep 2013 13:10:58 -0700 |
parents | 35f3730870e7 |
children | 76b1723c87fc |
line wrap: on
line diff
--- a/python/setup_repo.py Tue Sep 24 12:32:50 2013 -0700 +++ b/python/setup_repo.py Tue Sep 24 13:10:58 2013 -0700 @@ -38,11 +38,11 @@ return return subprocess.check_output(*args, **kwargs) -def init_repo(directory): +def init_repo(directory, message): """setup repository""" call(['hg', 'init', directory]) call(['hg', 'add', '-R', directory]) - call(['hg', 'commit', '-m', options.message, '-R', directory]) + call(['hg', 'commit', '-m', message, '-R', directory]) def write_hgrc(directory, host, repo, name): """write hgrc file""" @@ -130,7 +130,7 @@ if options.remote_only: assert options.remote_url else: - init_repo(directory) + init_repo(directory, options.message) # setup remote, if specified name = os.path.basename(directory)