equal
deleted
inserted
replaced
273 """helper dedicated to ensure a commit respect mq.secret setting |
273 """helper dedicated to ensure a commit respect mq.secret setting |
274 |
274 |
275 It should be used instead of repo.commit inside the mq source for operation |
275 It should be used instead of repo.commit inside the mq source for operation |
276 creating new changeset. |
276 creating new changeset. |
277 """ |
277 """ |
|
278 repo = repo.unfiltered() |
278 if phase is None: |
279 if phase is None: |
279 if repo.ui.configbool('mq', 'secret', False): |
280 if repo.ui.configbool('mq', 'secret', False): |
280 phase = phases.secret |
281 phase = phases.secret |
281 if phase is not None: |
282 if phase is not None: |
282 backup = repo.ui.backupconfig('phases', 'new-commit') |
283 backup = repo.ui.backupconfig('phases', 'new-commit') |