changeset 6083:81a8667331e8

convert: detect baz before tla The former seems to handle repositories built by the latter, the opposite is not true.
author Patrick Mezard <pmezard@gmail.com>
date Tue, 12 Feb 2008 23:35:35 +0100
parents 875b745996e8
children a672df805855
files hgext/convert/gnuarch.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/gnuarch.py	Tue Feb 12 21:44:56 2008 +0100
+++ b/hgext/convert/gnuarch.py	Tue Feb 12 23:35:35 2008 +0100
@@ -27,11 +27,11 @@
 
         # Could use checktool, but we want to check for baz or tla.
         self.execmd = None
-        if util.find_exe('tla'):
-            self.execmd = 'tla'
+        if util.find_exe('baz'):
+            self.execmd = 'baz'
         else:
-            if util.find_exe('baz'):
-                self.execmd = 'baz'
+            if util.find_exe('tla'):
+                self.execmd = 'tla'
             else:
                 raise util.Abort(_('cannot find a GNU Arch tool'))