mercurial/commands.py
branchstable
changeset 20772 03774a2b6991
parent 20767 bcfc4f625e57
child 20773 efbf15979538
child 20868 5db105f216c3
equal deleted inserted replaced
20771:434619dae569 20772:03774a2b6991
  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: