Mercurial > public > mercurial-scm > hg-stable
comparison hgext/mq.py @ 18010:38b51a60a195
clfilter: ensure that mq performs commits on unfiltered repos
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Mon, 08 Oct 2012 18:02:25 +0200 |
parents | 4dc438ddd246 |
children | 4908197d7422 |
comparison
equal
deleted
inserted
replaced
18009:67c874d14c2c | 18010:38b51a60a195 |
---|---|
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') |