hgext/mq.py
changeset 18010 38b51a60a195
parent 17954 4dc438ddd246
child 18011 4908197d7422
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')