mercurial/ui.py
changeset 16383 f5dd179bfa4a
parent 16373 329887a7074c
child 16683 525fdb738975
child 17048 15d4d475de9e
equal deleted inserted replaced
16382:f542d291c4f2 16383:f5dd179bfa4a
   685                 traceback.print_exc(file=self.ferr)
   685                 traceback.print_exc(file=self.ferr)
   686         return self.tracebackflag
   686         return self.tracebackflag
   687 
   687 
   688     def geteditor(self):
   688     def geteditor(self):
   689         '''return editor to use'''
   689         '''return editor to use'''
       
   690         if sys.platform == 'plan9':
       
   691             # vi is the MIPS instruction simulator on Plan 9. We
       
   692             # instead default to E to plumb commit messages to
       
   693             # avoid confusion.
       
   694             editor = 'E'
       
   695         else:
       
   696             editor = 'vi'
   690         return (os.environ.get("HGEDITOR") or
   697         return (os.environ.get("HGEDITOR") or
   691                 self.config("ui", "editor") or
   698                 self.config("ui", "editor") or
   692                 os.environ.get("VISUAL") or
   699                 os.environ.get("VISUAL") or
   693                 os.environ.get("EDITOR", "vi"))
   700                 os.environ.get("EDITOR", editor))
   694 
   701 
   695     def progress(self, topic, pos, item="", unit="", total=None):
   702     def progress(self, topic, pos, item="", unit="", total=None):
   696         '''show a progress message
   703         '''show a progress message
   697 
   704 
   698         With stock hg, this is simply a debug message that is hidden
   705         With stock hg, this is simply a debug message that is hidden