comparison mercurial/commands.py @ 14271:4030630fb59c

rename util.find_exe to findexe
author Adrian Buehlmann <adrian@cadifra.com>
date Sun, 08 May 2011 20:35:46 +0200
parents 00a881581400
children b039b667515d
comparison
equal deleted inserted replaced
14268:a55a0045704c 14271:4030630fb59c
1646 problems += 1 1646 problems += 1
1647 1647
1648 # editor 1648 # editor
1649 ui.status(_("Checking commit editor...\n")) 1649 ui.status(_("Checking commit editor...\n"))
1650 editor = ui.geteditor() 1650 editor = ui.geteditor()
1651 cmdpath = util.find_exe(editor) or util.find_exe(editor.split()[0]) 1651 cmdpath = util.findexe(editor) or util.findexe(editor.split()[0])
1652 if not cmdpath: 1652 if not cmdpath:
1653 if editor == 'vi': 1653 if editor == 'vi':
1654 ui.write(_(" No commit editor set and can't find vi in PATH\n")) 1654 ui.write(_(" No commit editor set and can't find vi in PATH\n"))
1655 ui.write(_(" (specify a commit editor in your configuration" 1655 ui.write(_(" (specify a commit editor in your configuration"
1656 " file)\n")) 1656 " file)\n"))