hgext/convert/gnuarch.py
changeset 6083 81a8667331e8
parent 6079 ea34059b89de
child 6212 e75aab656f46
equal deleted inserted replaced
6082:875b745996e8 6083:81a8667331e8
    25         if not os.path.exists(os.path.join(path, '{arch}')):
    25         if not os.path.exists(os.path.join(path, '{arch}')):
    26             raise NoRepo(_("%s does not look like a GNU Arch repo" % path))
    26             raise NoRepo(_("%s does not look like a GNU Arch repo" % path))
    27 
    27 
    28         # Could use checktool, but we want to check for baz or tla.
    28         # Could use checktool, but we want to check for baz or tla.
    29         self.execmd = None
    29         self.execmd = None
    30         if util.find_exe('tla'):
    30         if util.find_exe('baz'):
    31             self.execmd = 'tla'
    31             self.execmd = 'baz'
    32         else:
    32         else:
    33             if util.find_exe('baz'):
    33             if util.find_exe('tla'):
    34                 self.execmd = 'baz'
    34                 self.execmd = 'tla'
    35             else:
    35             else:
    36                 raise util.Abort(_('cannot find a GNU Arch tool'))
    36                 raise util.Abort(_('cannot find a GNU Arch tool'))
    37 
    37 
    38         commandline.__init__(self, ui, self.execmd)
    38         commandline.__init__(self, ui, self.execmd)
    39 
    39