mercurial/phases.py
changeset 34563 1faa34347b24
parent 34328 4ef472b975ff
child 34710 cdf833d7de98
equal deleted inserted replaced
34562:c2d2e18f9700 34563:1faa34347b24
   617     """helper to get the target phase of new commit
   617     """helper to get the target phase of new commit
   618 
   618 
   619     Handle all possible values for the phases.new-commit options.
   619     Handle all possible values for the phases.new-commit options.
   620 
   620 
   621     """
   621     """
   622     v = ui.config('phases', 'new-commit', draft)
   622     v = ui.config('phases', 'new-commit')
   623     try:
   623     try:
   624         return phasenames.index(v)
   624         return phasenames.index(v)
   625     except ValueError:
   625     except ValueError:
   626         try:
   626         try:
   627             return int(v)
   627             return int(v)