예제 #1
0
 def vcs_command(self, fnames, action):
     """VCS action (commit, browse)"""
     try:
         for path in sorted(fnames):
             vcs.run_vcs_tool(path, action)
     except vcs.ActionToolNotFound as error:
         msg = _("For %s support, please install one of the<br/> "
                 "following tools:<br/><br/>  %s")\
                     % (error.vcsname, ', '.join(error.tools))
         QMessageBox.critical(self, _("Error"),
             _("""<b>Unable to find external program.</b><br><br>%s""")
                 % to_text_string(msg))
예제 #2
0
 def vcs_command(self, fnames, action):
     """VCS action (commit, browse)"""
     try:
         for path in sorted(fnames):
             vcs.run_vcs_tool(path, action)
     except vcs.ActionToolNotFound as error:
         msg = _("For %s support, please install one of the<br/> "
                 "following tools:<br/><br/>  %s")\
                     % (error.vcsname, ', '.join(error.tools))
         QMessageBox.critical(self, _("Error"),
             _("""<b>Unable to find external program.</b><br><br>%s""")
                 % to_text_string(msg))