Mercurial > wikked
changeset 220:6ef588e2e748
Commit pages at the end of `wk init` in a newly created wiki.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Mon, 03 Mar 2014 22:01:57 -0800 |
parents | 139b9b82db78 |
children | 4306c6b56b30 |
files | wikked/commands/manage.py |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/wikked/commands/manage.py Mon Mar 03 21:59:08 2014 -0800 +++ b/wikked/commands/manage.py Mon Mar 03 22:01:57 2014 -0800 @@ -50,6 +50,10 @@ shutil.copy(os.path.join(src_dir, 'Main page.md'), path) shutil.copy(os.path.join(src_dir, 'Sandbox.md'), path) + wiki.scm.commit( + [os.path.join(path, 'Main page.md'), + os.path.join(path, 'Sandbox.md')], + {'message': "Initial commit"}) @register_command