1434 |
1434 |
1435 def commitfunc(ui, repo, message, match, opts): |
1435 def commitfunc(ui, repo, message, match, opts): |
1436 try: |
1436 try: |
1437 if opts.get('secret'): |
1437 if opts.get('secret'): |
1438 ui.setconfig('phases', 'new-commit', 'secret') |
1438 ui.setconfig('phases', 'new-commit', 'secret') |
|
1439 # Propagate to subrepos |
|
1440 repo.baseui.setconfig('phases', 'new-commit', 'secret') |
1439 |
1441 |
1440 return repo.commit(message, opts.get('user'), opts.get('date'), |
1442 return repo.commit(message, opts.get('user'), opts.get('date'), |
1441 match, editor=e, extra=extra) |
1443 match, editor=e, extra=extra) |
1442 finally: |
1444 finally: |
1443 ui.setconfig('phases', 'new-commit', oldcommitphase) |
1445 ui.setconfig('phases', 'new-commit', oldcommitphase) |
|
1446 repo.baseui.setconfig('phases', 'new-commit', oldcommitphase) |
1444 |
1447 |
1445 |
1448 |
1446 node = cmdutil.commit(ui, repo, commitfunc, pats, opts) |
1449 node = cmdutil.commit(ui, repo, commitfunc, pats, opts) |
1447 |
1450 |
1448 if not node: |
1451 if not node: |