mercurial/shelve.py
changeset 50928 d718eddf01d9
parent 50596 4a60280b5653
child 51100 ae6722dbb575
equal deleted inserted replaced
50927:7a8ea1397816 50928:d718eddf01d9
   514                     visit.append(parent)
   514                     visit.append(parent)
   515 
   515 
   516 
   516 
   517 def getcommitfunc(extra, interactive, editor=False):
   517 def getcommitfunc(extra, interactive, editor=False):
   518     def commitfunc(ui, repo, message, match, opts):
   518     def commitfunc(ui, repo, message, match, opts):
   519         hasmq = util.safehasattr(repo, 'mq')
   519         hasmq = hasattr(repo, 'mq')
   520         if hasmq:
   520         if hasmq:
   521             saved, repo.mq.checkapplied = repo.mq.checkapplied, False
   521             saved, repo.mq.checkapplied = repo.mq.checkapplied, False
   522 
   522 
   523         targetphase = _target_phase(repo)
   523         targetphase = _target_phase(repo)
   524         overrides = {(b'phases', b'new-commit'): targetphase}
   524         overrides = {(b'phases', b'new-commit'): targetphase}