Paul Lambert  committed 74fd311

small bug fix

  • Participants
  • Parent commits a5dbbe9
  • Branches default

Comments (0)

Files changed (1)

     return os.path.exists(os.path.join(os.getcwd(), ".hg"))
-def checkexists(path, pathtype):
-    if not os.path.isfile(path) and self._ui.promptchoice(_("No %s "+
+def checkexists(path, pathtype, ui):
+    if not os.path.isfile(path) and ui.promptchoice(_("No %s "+
     "configuration found. Would you like to create one [y n]?")%
         (pathtype), ['&no', '&yes'], 1):
         with open(path, "wb") as _empty:
          path = os.path.abspath(path)
         raise "Invalid Path Type"
-    checkexists(path, pathtype)
+    checkexists(path, pathtype, ui)
     return path