hgext/convert/monotone.py
changeset 41365 876494fd967d
parent 40225 474809790256
child 41452 a03d20e36194
equal deleted inserted replaced
41364:0132221c25cd 41365:876494fd967d
   333         # ... and we don't support that
   333         # ... and we don't support that
   334         raise NotImplementedError
   334         raise NotImplementedError
   335 
   335 
   336     def before(self):
   336     def before(self):
   337         # Check if we have a new enough version to use automate stdio
   337         # Check if we have a new enough version to use automate stdio
   338         version = 0.0
       
   339         try:
   338         try:
   340             versionstr = self.mtnrunsingle("interface_version")
   339             versionstr = self.mtnrunsingle("interface_version")
   341             version = float(versionstr)
   340             version = float(versionstr)
   342         except Exception:
   341         except Exception:
   343             raise error.Abort(_("unable to determine mtn automate interface "
   342             raise error.Abort(_("unable to determine mtn automate interface "