comparison mercurial/ui.py @ 16383:f5dd179bfa4a

plan9: initial support for plan 9 from bell labs This patch contains support for Plan 9 from Bell Labs. A README is provided in contrib/plan9 which describes the port in greater detail. A new extension is also provided named factotum which permits the factotum(4) authentication agent to provide credentials for HTTP repositories. This extension is also applicable to other POSIX platforms which make use of Plan 9 from User Space (aka plan9ports).
author Steven Stallion <sstallion@gmail.com>
date Sun, 08 Apr 2012 12:43:41 -0700
parents 329887a7074c
children 525fdb738975 15d4d475de9e
comparison
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