equal
deleted
inserted
replaced
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) |