equal
deleted
inserted
replaced
1549 def init(ui, repo, **opts): |
1549 def init(ui, repo, **opts): |
1550 """init a new queue repository |
1550 """init a new queue repository |
1551 |
1551 |
1552 The queue repository is unversioned by default. If -c is |
1552 The queue repository is unversioned by default. If -c is |
1553 specified, qinit will create a separate nested repository |
1553 specified, qinit will create a separate nested repository |
1554 for patches. Use qcommit to commit changes to this queue |
1554 for patches (qinit -c may also be run later to convert |
1555 repository.""" |
1555 an unversioned patch repository into a versioned one). |
|
1556 You can use qcommit to commit changes to this queue repository.""" |
1556 q = repo.mq |
1557 q = repo.mq |
1557 r = q.init(repo, create=opts['create_repo']) |
1558 r = q.init(repo, create=opts['create_repo']) |
1558 q.save_dirty() |
1559 q.save_dirty() |
1559 if r: |
1560 if r: |
1560 if not os.path.exists(r.wjoin('.hgignore')): |
1561 if not os.path.exists(r.wjoin('.hgignore')): |